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