Skip to content

Commit

Permalink
Merge branch '19-slot-specific-disconnect' into 'main'
Browse files Browse the repository at this point in the history
Disconnect just our slot, not all slots

Closes #19

See merge request qgis/hvbg-filterplugin!3
  • Loading branch information
Johannes Kröger committed Oct 25, 2022
2 parents 184c9c6 + 93bfc8c commit 0c07bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0c07bd9

Please sign in to comment.