You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to purge a Data Store from its properties tab after opening and closing Database editor and got this Traceback:
Traceback (most recent call last):
File "spinetoolbox\helpers.py", line 122, in new_function
return func(*args, **kwargs)
File "spinetoolbox\fetch_parent.py", line 99, in _apply_pending_changes
self.handle_items_removed({db_map: data})
File "spinetoolbox\fetch_parent.py", line 332, in handle_items_removed
self._handle_items_removed(db_map_data)
File "spinetoolbox\spine_db_editor\mvcmodels\tree_item_utility.py", line 209, in handle_items_removed
self.remove_children(row, 1)
File "spinetoolbox\mvcmodels\minimal_tree_model.py", line 193, in remove_children
self.model.beginRemoveRows(self.index(), first, last)
File "spinetoolbox\mvcmodels\minimal_tree_model.py", line 126, in index
return self.model.index_from_item(self)
File "spinetoolbox\mvcmodels\minimal_tree_model.py", line 313, in index_from_item
return self.createIndex(row, 0, item)
RuntimeError: Internal C++ object (AlternativeModel) already deleted.
The text was updated successfully, but these errors were encountered:
We now tear down the invisible root item of TreeModelBase before we
replace it with a new one which sets the tree items' fetch parents
obsolete. Otherwise, refreshing the session in Database editor would
clog up non-obsolete but useless fetch parents in memory until
the editor was closed.
Re #2355
I tried to purge a Data Store from its properties tab after opening and closing Database editor and got this Traceback:
The text was updated successfully, but these errors were encountered: