- fixed the on_delete() method in the App class; sometime it will delete all files that have similar names

- made sure that on creation of new objects the adding of the names to the auto-complete list is done properly
This commit is contained in:
Marius Stanciu
2020-12-09 19:13:06 +02:00
committed by Marius
parent c1fdf2d8e8
commit d6c34f97ef
4 changed files with 16 additions and 9 deletions

View File

@@ -577,6 +577,11 @@ class ObjectCollection(QtCore.QAbstractItemModel):
name += "_1"
obj.options["name"] = name
# ############################################################################################################
# update the KeyWords list with the name of the file
# ############################################################################################################
self.app.myKeywords.append(name)
obj.set_ui(obj.ui_type(app=self.app))
# a way to signal that the object was fully loaded
obj.load_complete = True