Skip to content

Commit

Permalink
wxGUI lmgr: fix cancel save workspace dialog (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi authored and petrasovaa committed May 13, 2020
1 parent 032649c commit ba06e7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gui/wxpython/lmgr/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ def OnCBPageClosing(self, event):
caption = _("Close Map Display {}").format(name)
if not self.CanClosePage(caption):
event.Veto()
return

maptree = self.notebookLayers.GetPage(event.GetSelection()).maptree
maptree.GetMapDisplay().CleanUp()
Expand Down

0 comments on commit ba06e7d

Please sign in to comment.