[GRASS-SVN] r31138 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Apr 27 07:29:17 EDT 2008
Author: martinl
Date: 2008-04-27 07:29:17 -0400 (Sun, 27 Apr 2008)
New Revision: 31138
Modified:
grass/trunk/gui/wxpython/gui_modules/digit.py
Log:
wxGUI (digit): save only vdigit-related settings
Modified: grass/trunk/gui/wxpython/gui_modules/digit.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/digit.py 2008-04-27 11:17:29 UTC (rev 31137)
+++ grass/trunk/gui/wxpython/gui_modules/digit.py 2008-04-27 11:29:17 UTC (rev 31138)
@@ -1965,8 +1965,13 @@
"""Button 'Save' clicked"""
self.UpdateSettings()
self.parent.digittoolbar.settingsDialog = None
- file = UserSettings.SaveToFile()
- self.parent.gismanager.goutput.cmd_stdout.write('Settings saved to file <%s>.' % file)
+
+ fileSettings = {}
+ UserSettings.ReadSettingsFile(settings=fileSettings)
+ fileSettings['vdigit'] = UserSettings.Get(group='vdigit')
+ file = UserSettings.SaveToFile(fileSettings)
+ self.parent.gismanager.goutput.WriteLog('Vector digitizer settings saved to file <%s>.' % file)
+
self.Close()
def OnApply(self, event):
More information about the grass-commit
mailing list