- 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:
Marius Stanciu
2020-11-25 23:06:20 +02:00
committed by Marius Stanciu
parent fb983872d0
commit d49f8a87e6
6 changed files with 64 additions and 13 deletions

View File

@@ -6095,15 +6095,15 @@ class App(QtCore.QObject):
"""
if tab_obj_name == "preferences_tab":
self.preferencesUiManager.on_close_preferences_tab()
self.preferencesUiManager.on_close_preferences_tab(parent=self.ui)
elif tab_obj_name == "database_tab":
# disconnect the signals from the table widget in tab
self.tools_db_tab.ui_disconnect()
if self.tools_db_changed_flag is True:
msgbox = QtWidgets.QMessageBox()
msgbox = QtWidgets.QMessageBox(parent=self.ui)
msgbox.setText(_("One or more Tools are edited.\n"
"Do you want to update the Tools Database?"))
"Do you want to save?"))
msgbox.setWindowTitle(_("Save Tools Database"))
msgbox.setWindowIcon(QtGui.QIcon(self.resource_location + '/save_as.png'))
msgbox.setIcon(QtWidgets.QMessageBox.Question)