Skip to content

Commit

Permalink
fix(gui): Fix Qt segmentation fault with uninstall ExtraMouseButtonEv…
Browse files Browse the repository at this point in the history
…entFilter when closing main window (#1095)

Fix #1095
  • Loading branch information
Derek Veit committed Jun 26, 2024
1 parent 51ff9cf commit bfe1071
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Back In Time

Version 1.4.4-dev (development of upcoming release)
* Fix: Fix Qt segmentation fault with uninstall ExtraMouseButtonEventFilter when closing main window (#1095)
* Build: Enable PyLint rules C0305 (trailing-newlines), C0324 (superfluous-parens), C0410 (multiple-imports), E0213 (no-self-argument)
* Feature: Warn if Cron is not running (#1747)
* Build: Activate PyLint error C0303 (trailing-whitespaces)
Expand Down
2 changes: 2 additions & 0 deletions qt/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,8 @@ def closeEvent(self, event):
if answer != QMessageBox.StandardButton.Yes:
return event.ignore()

self.qapp.removeEventFilter(self.mouseButtonEventFilter)

self.config.setStrValue('qt.last_path', self.path)
self.config.setProfileStrValue('qt.last_path', self.path)

Expand Down

0 comments on commit bfe1071

Please sign in to comment.