From 816748b6d6b14b8b9f80fc904dc2654fd3e0f7c1 Mon Sep 17 00:00:00 2001 From: Adrien Tétar Date: Sat, 17 Oct 2015 13:16:24 +0200 Subject: glyphView: add startPoints support, consolidate notifications --- Lib/defconQt/featureTextEditor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lib/defconQt/featureTextEditor.py') diff --git a/Lib/defconQt/featureTextEditor.py b/Lib/defconQt/featureTextEditor.py index 5c5de76..b11947a 100644 --- a/Lib/defconQt/featureTextEditor.py +++ b/Lib/defconQt/featureTextEditor.py @@ -33,7 +33,8 @@ class MainEditWindow(QMainWindow): def closeEvent(self, event): if self.editor.document().isModified(): - closeDialog = QMessageBox(QMessageBox.Question, "Me", "Save your changes?", + name = QApplication.applicationName() + closeDialog = QMessageBox(QMessageBox.Question, name, "Save your changes?", QMessageBox.Save | QMessageBox.Discard | QMessageBox.Cancel, self) closeDialog.setInformativeText("Your changes will be lost if you don’t save them.") closeDialog.setModal(True) -- cgit v1.2.3