[GRASS-SVN] r29996 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Feb 7 05:32:08 EST 2008
Author: martinl
Date: 2008-02-07 05:32:08 -0500 (Thu, 07 Feb 2008)
New Revision: 29996
Modified:
grass/trunk/gui/wxpython/gui_modules/toolbars.py
Log:
wxGUI: load digit instance for settings dialog when no instance is loaded
Modified: grass/trunk/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/toolbars.py 2008-02-07 10:26:49 UTC (rev 29995)
+++ grass/trunk/gui/wxpython/gui_modules/toolbars.py 2008-02-07 10:32:08 UTC (rev 29996)
@@ -467,6 +467,11 @@
def OnSettings(self, event):
"""Show settings dialog"""
+ if self.parent.digit is None:
+ reload(digit)
+ from digit import Digit as Digit
+ self.parent.digit = Digit(mapwindow=self.parent.MapWindow)
+
if not self.settingsDialog:
self.settingsDialog = DigitSettingsDialog(parent=self.parent, title=_("Digitization settings"),
style=wx.DEFAULT_DIALOG_STYLE)
More information about the grass-commit
mailing list