From 0477df72b7dbf1d1e4f5429129946349a0c2c61c Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 5 Feb 2014 16:03:32 +0100 Subject: [PATCH] Don't output debug strings for cur_progress signals --- qutebrowser/widgets/browser.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qutebrowser/widgets/browser.py b/qutebrowser/widgets/browser.py index 362e1ef34..86fb6122a 100644 --- a/qutebrowser/widgets/browser.py +++ b/qutebrowser/widgets/browser.py @@ -341,10 +341,12 @@ class TabbedBrowser(TabWidget): return sender.signal_cache[signal.signal] = (signal, args) if self.currentWidget() == sender: - logging.debug('{} - emitting'.format(dbgstr)) + if not signal.signal.startswith('2cur_progress'): + logging.debug('{} - emitting'.format(dbgstr)) return signal.emit(*args) else: - logging.debug('{} - ignoring'.format(dbgstr)) + if not signal.signal.startswith('2cur_progress'): + logging.debug('{} - ignoring'.format(dbgstr)) def _currentChanged_handler(self, idx): """Update status bar values when a tab was changed.