From d9f1c0b8c24f842ae23f393d61b5dfc2e227187d Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Wed, 25 Sep 2024 17:20:20 +0200 Subject: [PATCH] use correct attribute name --- src/gui_qt/lib/usermodeleditor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui_qt/lib/usermodeleditor.py b/src/gui_qt/lib/usermodeleditor.py index d9e5761..28d2289 100644 --- a/src/gui_qt/lib/usermodeleditor.py +++ b/src/gui_qt/lib/usermodeleditor.py @@ -126,7 +126,7 @@ class QUsermodelEditor(QtWidgets.QMainWindow): self.is_modified = False def closeEvent(self, evt: QtGui.QCloseEvent): - if not self.changes_saved: + if self.is_modified: evt.ignore() else: super().closeEvent(evt)