Skip to content

Commit 83e70ec

Browse files
committed
Setting self.rubberBand None after calling deleteLater()
1 parent 4f76daf commit 83e70ec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

microscope/plugins/grid_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def stop_plugin(self):
8686
self.remove_grid(self.parent.scene)
8787
if self.rubberBand:
8888
self.rubberBand.deleteLater()
89+
self.rubberBand = None
8990

9091
def write_settings(self) -> Dict[str, Any]:
9192
"""Writes the plugin's settings to a dictionary.

0 commit comments

Comments
 (0)