Browse Source

wxGUI lmgr: fix cancel save workspace dialog (#628)

Tomas Zigo 5 years ago
parent
commit
ba06e7d6e4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      gui/wxpython/lmgr/frame.py

+ 1 - 0
gui/wxpython/lmgr/frame.py

@@ -668,6 +668,7 @@ class GMFrame(wx.Frame):
         caption = _("Close Map Display {}").format(name)
         if not self.CanClosePage(caption):
             event.Veto()
+            return
 
         maptree = self.notebookLayers.GetPage(event.GetSelection()).maptree
         maptree.GetMapDisplay().CleanUp()