ソースを参照

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)
         if not self.CanClosePage(caption):
             event.Veto()
+            return
 
         maptree = self.notebookLayers.GetPage(event.GetSelection()).maptree
         maptree.GetMapDisplay().CleanUp()