- in Tools Database added a new column showing the intended target and also added in the context menu an entry that will sort the tools by tool diameter
- fixed in Tools Database the message pop-up that tools are modified but not saved on Toos Database tab closing
This commit is contained in:
committed by
Marius Stanciu
parent
fb983872d0
commit
d49f8a87e6
@@ -1153,7 +1153,7 @@ class PreferencesUIManager:
|
||||
|
||||
self.preferences_changed_flag = True
|
||||
|
||||
def on_close_preferences_tab(self):
|
||||
def on_close_preferences_tab(self, parent):
|
||||
if self.ignore_tab_close_event:
|
||||
return
|
||||
|
||||
@@ -1190,9 +1190,9 @@ class PreferencesUIManager:
|
||||
|
||||
# Prompt user to save
|
||||
if self.preferences_changed_flag is True:
|
||||
msgbox = QtWidgets.QMessageBox()
|
||||
msgbox = QtWidgets.QMessageBox(parent=parent)
|
||||
msgbox.setText(_("One or more values are changed.\n"
|
||||
"Do you want to save the Preferences?"))
|
||||
"Do you want to save?"))
|
||||
msgbox.setWindowTitle(_("Save Preferences"))
|
||||
msgbox.setWindowIcon(QtGui.QIcon(self.ui.app.resource_location + '/save_as.png'))
|
||||
msgbox.setIcon(QtWidgets.QMessageBox.Question)
|
||||
|
||||
Reference in New Issue
Block a user