From bfe1071e3c3f4d62e7b82a19e26fb3fa4a4925b0 Mon Sep 17 00:00:00 2001 From: Derek Veit Date: Sat, 22 Jun 2024 10:08:57 -0700 Subject: [PATCH] fix(gui): Fix Qt segmentation fault with uninstall ExtraMouseButtonEventFilter when closing main window (#1095) Fix #1095 --- CHANGES | 1 + qt/app.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index 0814edae5..af015fa7d 100644 --- a/CHANGES +++ b/CHANGES @@ -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) diff --git a/qt/app.py b/qt/app.py index c2f74e846..eada73156 100644 --- a/qt/app.py +++ b/qt/app.py @@ -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)