From fd4e9c055099114c20dc91ee6573affa3f337b7d Mon Sep 17 00:00:00 2001 From: Antti Soininen Date: Tue, 12 Sep 2023 10:45:44 +0300 Subject: [PATCH] Skip counters 1, 2 --- 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 eed7a19b2..b5b4c1cb5 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,): + if self._remove_items_counter in (1, 2): return True parent.remove_item(item, self._db_map) return True