Pārlūkot izejas kodu

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

Tomas Zigo 5 gadi atpakaļ
vecāks
revīzija
ba06e7d6e4
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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()