From d0e996ccaa16de8d9deb459fe5b482cfa0828847 Mon Sep 17 00:00:00 2001 From: Antti Soininen Date: Tue, 12 Sep 2023 10:51:12 +0300 Subject: [PATCH] Skip all counter values --- spinetoolbox/spine_db_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spinetoolbox/spine_db_worker.py b/spinetoolbox/spine_db_worker.py index b5b4c1cb5..0176ad936 100644 --- a/spinetoolbox/spine_db_worker.py +++ b/spinetoolbox/spine_db_worker.py @@ -157,7 +157,7 @@ def _remove_item(self, parent, item): self._remove_item_callbacks.pop(parent, None) return False self._remove_items_counter += 1 - if self._remove_items_counter in (1, 2): + if self._remove_items_counter in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15): return True parent.remove_item(item, self._db_map) return True