- added a protection when trying to edit a Geometry object that have multiple tools but no tool is selected

This commit is contained in:
Marius Stanciu
2020-06-09 00:02:16 +03:00
committed by Marius
parent 850b80bb41
commit 24d639e1de
3 changed files with 43 additions and 6 deletions

View File

@@ -2154,6 +2154,10 @@ class App(QtCore.QObject):
"is not possible.\n"
"Edit only one geometry at a time."))
if not sel_rows:
self.inform.emit('[WARNING_NOTCL] %s.' % _("No Tool Selected"))
return
# determine the tool dia of the selected tool
selected_tooldia = float(edited_object.ui.geo_tools_table.item(sel_rows[0], 1).text())