From 93bfc8c2f5e1289004c1f115ebeb6eb0cd2d2cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Kr=C3=B6ger?= Date: Tue, 25 Oct 2022 14:19:50 +0200 Subject: [PATCH] Disconnect just our slot, not all slots Fixes #19 --- controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller.py b/controller.py index 8f7b846..c2f0c89 100644 --- a/controller.py +++ b/controller.py @@ -32,7 +32,7 @@ def updateConnectionProjectLayersAdded(self, checked): def disconnectProjectLayersAdded(self): try: - QgsProject.instance().layersAdded.disconnect() + QgsProject.instance().layersAdded.disconnect(self.onLayersAdded) except TypeError: pass