Fix removing of eventfilter on shutdown if not present.

This commit is contained in:
Florian Bruhin 2014-10-08 06:38:03 +02:00
parent f6695cac7d
commit 4abb5c8f36

View File

@ -610,7 +610,7 @@ class Application(QApplication):
try:
log.destroy.debug("Removing eventfilter...")
self.removeEventFilter(self._event_filter)
except KeyError:
except AttributeError:
pass
# Close all tabs
for win_id in objreg.window_registry: