[GRASS-SVN] r50042 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 3 06:00:05 EST 2012
Author: mmetz
Date: 2012-01-03 03:00:05 -0800 (Tue, 03 Jan 2012)
New Revision: 50042
Modified:
grass/trunk/gui/wxpython/gui_core/gselect.py
Log:
wxGUI: use previous selection for ColumnSelect if possible
Modified: grass/trunk/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/gselect.py 2012-01-03 09:03:43 UTC (rev 50041)
+++ grass/trunk/gui/wxpython/gui_core/gselect.py 2012-01-03 11:00:05 UTC (rev 50042)
@@ -849,7 +849,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
@@ -873,7 +875,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