[GRASS-SVN] r48627 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 5 04:07:03 EDT 2011


Author: martinl
Date: 2011-10-05 01:07:03 -0700 (Wed, 05 Oct 2011)
New Revision: 48627

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
Log:
wxGUI/modeler: don't show prop dialog when command has some options
defined
	(merge r48626 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py	2011-10-05 08:05:57 UTC (rev 48626)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py	2011-10-05 08:07:03 UTC (rev 48627)
@@ -1231,7 +1231,7 @@
         
         # show properties dialog
         win = action.GetPropDialog()
-        if not win and action.GetLog(string = False):
+        if not win and len(action.GetLog(string = False)) == 1:
             module = menuform.GUI(parent = self, show = True).ParseCommand(action.GetLog(string = False),
                                                                            completed = (self.GetOptData, action, action.GetParams()))
         elif win and not win.IsShown():



More information about the grass-commit mailing list