use correct attribute name
This commit is contained in:
parent
9039c44ce7
commit
d9f1c0b8c2
@ -126,7 +126,7 @@ class QUsermodelEditor(QtWidgets.QMainWindow):
|
|||||||
self.is_modified = False
|
self.is_modified = False
|
||||||
|
|
||||||
def closeEvent(self, evt: QtGui.QCloseEvent):
|
def closeEvent(self, evt: QtGui.QCloseEvent):
|
||||||
if not self.changes_saved:
|
if self.is_modified:
|
||||||
evt.ignore()
|
evt.ignore()
|
||||||
else:
|
else:
|
||||||
super().closeEvent(evt)
|
super().closeEvent(evt)
|
||||||
|
Loading…
Reference in New Issue
Block a user