Don't output debug strings for cur_progress signals

This commit is contained in:
Florian Bruhin 2014-02-05 16:03:32 +01:00
parent 0005c1d0a7
commit 0477df72b7

View File

@ -341,9 +341,11 @@ class TabbedBrowser(TabWidget):
return return
sender.signal_cache[signal.signal] = (signal, args) sender.signal_cache[signal.signal] = (signal, args)
if self.currentWidget() == sender: if self.currentWidget() == sender:
if not signal.signal.startswith('2cur_progress'):
logging.debug('{} - emitting'.format(dbgstr)) logging.debug('{} - emitting'.format(dbgstr))
return signal.emit(*args) return signal.emit(*args)
else: else:
if not signal.signal.startswith('2cur_progress'):
logging.debug('{} - ignoring'.format(dbgstr)) logging.debug('{} - ignoring'.format(dbgstr))
def _currentChanged_handler(self, idx): def _currentChanged_handler(self, idx):