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,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.