浏览代码

wxGUI: move tgis.init() to be called only for GUI forms with t-elements gselect

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53520 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 12 年之前
父节点
当前提交
b1f5c88402
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      gui/wxpython/gui_core/gselect.py

+ 2 - 2
gui/wxpython/gui_core/gselect.py

@@ -165,8 +165,6 @@ class TreeCtrlComboPopup(wx.combo.ComboPopup):
         self.fullyQualified = True
         
         self.SetFilter(None)
-
-        tgis.init()
         
     def Create(self, parent):
         self.seltree = wx.TreeCtrl(parent, style=wx.TR_HIDE_ROOT
@@ -550,6 +548,8 @@ class TreeCtrlComboPopup(wx.combo.ComboPopup):
         """!Set object properties"""
         if 'type' in kargs:
             self.type = kargs['type']
+            if self.type in ('stds', 'strds', 'str3ds', 'stvds'):
+                tgis.init()
         if 'mapsets' in kargs:
             self.mapsets = kargs['mapsets']
         if 'multiple' in kargs: