浏览代码

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

Tomas Zigo 5 年之前
父节点
当前提交
ba06e7d6e4
共有 1 个文件被更改,包括 1 次插入0 次删除
  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)
         caption = _("Close Map Display {}").format(name)
         if not self.CanClosePage(caption):
         if not self.CanClosePage(caption):
             event.Veto()
             event.Veto()
+            return
 
 
         maptree = self.notebookLayers.GetPage(event.GetSelection()).maptree
         maptree = self.notebookLayers.GetPage(event.GetSelection()).maptree
         maptree.GetMapDisplay().CleanUp()
         maptree.GetMapDisplay().CleanUp()