|
@@ -1093,7 +1093,6 @@ class MapsetSelect(wx.combo.ComboCtrl):
|
|
style = style, **kwargs)
|
|
style = style, **kwargs)
|
|
self.searchPath = searchPath
|
|
self.searchPath = searchPath
|
|
self.skipCurrent = skipCurrent
|
|
self.skipCurrent = skipCurrent
|
|
-
|
|
|
|
self.SetName("MapsetSelect")
|
|
self.SetName("MapsetSelect")
|
|
if not gisdbase:
|
|
if not gisdbase:
|
|
self.gisdbase = grass.gisenv()['GISDBASE']
|
|
self.gisdbase = grass.gisenv()['GISDBASE']
|
|
@@ -1121,6 +1120,9 @@ class MapsetSelect(wx.combo.ComboCtrl):
|
|
if dbase:
|
|
if dbase:
|
|
self.gisdbase = dbase
|
|
self.gisdbase = dbase
|
|
self.location = location
|
|
self.location = location
|
|
|
|
+
|
|
|
|
+ self.tcp.DeleteAllItems()
|
|
|
|
+
|
|
if location:
|
|
if location:
|
|
self.tcp.SetItems(self._getMapsets())
|
|
self.tcp.SetItems(self._getMapsets())
|
|
else:
|
|
else:
|
|
@@ -1159,6 +1161,7 @@ class MapsetSelect(wx.combo.ComboCtrl):
|
|
"""!For backward compatibility. MapsetSelect changed to allow
|
|
"""!For backward compatibility. MapsetSelect changed to allow
|
|
multiple selection, this required to change super-class from
|
|
multiple selection, this required to change super-class from
|
|
wx.ComboBox to wx.combo.ComboCtrl"""
|
|
wx.ComboBox to wx.combo.ComboCtrl"""
|
|
|
|
+ self.tcp.DeleteAllItems()
|
|
self.tcp.SetItems(items)
|
|
self.tcp.SetItems(items)
|
|
|
|
|
|
class SubGroupSelect(wx.ComboBox):
|
|
class SubGroupSelect(wx.ComboBox):
|