Переглянути джерело

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: