dev #297
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user