Skip to content

Commit

Permalink
wxGUI/iclass: fix closing scatter plot pane via x button (#3172)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed Sep 26, 2023
1 parent 60fb51f commit 5b494c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions gui/wxpython/iscatt/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def ScatterPlotClosed(self, scatt_id):
del self.scatts[scatt_id]

if pane.IsOk():
pane.DestroyOnClose()
self._mgr.ClosePane(pane)
self._mgr.Update()

Expand Down
1 change: 0 additions & 1 deletion gui/wxpython/iscatt/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ def CallAfter(self, funcs_list):

def CleanUp(self):
self.plotClosed.emit(scatt_id=self.scatt_id)
self.Destroy()

def ZoomWheel(self, event):
# get the current x and y limits
Expand Down

0 comments on commit 5b494c4

Please sign in to comment.