Fix removing of eventfilter on shutdown if not present.
This commit is contained in:
parent
f6695cac7d
commit
4abb5c8f36
@ -610,7 +610,7 @@ class Application(QApplication):
|
|||||||
try:
|
try:
|
||||||
log.destroy.debug("Removing eventfilter...")
|
log.destroy.debug("Removing eventfilter...")
|
||||||
self.removeEventFilter(self._event_filter)
|
self.removeEventFilter(self._event_filter)
|
||||||
except KeyError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
# Close all tabs
|
# Close all tabs
|
||||||
for win_id in objreg.window_registry:
|
for win_id in objreg.window_registry:
|
||||||
|
Loading…
Reference in New Issue
Block a user