[GRASS-SVN] r50045 -
grass/branches/develbranch_6/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 3 06:34:00 EST 2012
Author: martinl
Date: 2012-01-03 03:33:59 -0800 (Tue, 03 Jan 2012)
New Revision: 50045
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_core/gselect.py
Log:
mmetz: wxGUI: use previous selection for ColumnSelect if possible
(merge r50042 from trunk)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_core/gselect.py 2012-01-03 11:17:51 UTC (rev 50044)
+++ grass/branches/develbranch_6/gui/wxpython/gui_core/gselect.py 2012-01-03 11:33:59 UTC (rev 50045)
@@ -838,7 +838,9 @@
self.SetValue(self.defaultValue)
if self.param:
- self.param['value'] = ''
+ value = self.param.get('value', '')
+ if value != '' and value in columns:
+ self.SetValue(value)
def InsertTableColumns(self, table, driver=None, database=None):
"""!Insert table columns
@@ -862,7 +864,9 @@
self.SetValue(self.defaultValue)
if self.param:
- self.param['value'] = ''
+ value = self.param.get('value', '')
+ if value != '' and value in columns:
+ self.SetValue(value)
class DbaseSelect(wx.lib.filebrowsebutton.DirBrowseButton):
"""!Widget for selecting GRASS Database"""
More information about the grass-commit
mailing list