- added a Toggle All checkbox to Corner Markers Tool

- added an Icon to the MessageBox that asks for saving if the user try to close the app and there is some unsaved work
This commit is contained in:
Marius Stanciu
2020-05-25 04:46:03 +03:00
committed by Marius
parent 1b1dd23082
commit 1a4fa4317a
4 changed files with 23 additions and 2 deletions

View File

@@ -3040,6 +3040,8 @@ class App(QtCore.QObject):
"Do you want to Save the project?"))
msgbox.setWindowTitle(_("Save changes"))
msgbox.setWindowIcon(QtGui.QIcon(self.resource_location + '/save_as.png'))
msgbox.setIcon(QtWidgets.QMessageBox.Question)
bt_yes = msgbox.addButton(_('Yes'), QtWidgets.QMessageBox.YesRole)
bt_no = msgbox.addButton(_('No'), QtWidgets.QMessageBox.NoRole)
bt_cancel = msgbox.addButton(_('Cancel'), QtWidgets.QMessageBox.RejectRole)