|
@@ -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()
|