Add more debug info to _filter_signals warning

This commit is contained in:
Florian Bruhin 2014-02-05 15:31:09 +01:00
parent 96cfdfc96c
commit ac33da82a2

View File

@ -336,7 +336,8 @@ class TabbedBrowser(TabWidget):
sender = self.sender() sender = self.sender()
if type(sender) != type(self.currentWidget()): if type(sender) != type(self.currentWidget()):
# FIXME why does this happen? # FIXME why does this happen?
logging.warn('Got a signal to _filter_signals not by a tab!') logging.warn('Got signal "{}" by {} which is no tab!'.format(
dbgstr, sender))
return return
sender.signal_cache[signal.signal] = (signal, args) sender.signal_cache[signal.signal] = (signal, args)
if self.currentWidget() == sender: if self.currentWidget() == sender: