فهرست منبع

wxGUI: fix gselect OnClose() when called from Graphical Modeler

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@64857 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 سال پیش
والد
کامیت
ec62db89f0
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      gui/wxpython/gui_core/gselect.py

+ 3 - 0
gui/wxpython/gui_core/gselect.py

@@ -2361,6 +2361,9 @@ class VectorCategorySelect(wx.Panel):
             self.OnClose()
 
     def OnClose(self, event=None):
+        if not self.mapdisp:
+            return
+        
         switcher = self.mapdisp.GetToolSwitcher()
         switcher.RemoveCustomToolFromGroup(self.buttonVecSelect.GetId())
         if self._vectorSelect is not None: