[GRASS-SVN] r48626 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 5 04:05:57 EDT 2011


Author: martinl
Date: 2011-10-05 01:05:57 -0700 (Wed, 05 Oct 2011)
New Revision: 48626

Modified:
   grass/trunk/gui/wxpython/gui_modules/gmodeler.py
Log:
wxGUI/modeler: don't show prop dialog when command has some options
defined


Modified: grass/trunk/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gmodeler.py	2011-10-05 07:52:36 UTC (rev 48625)
+++ grass/trunk/gui/wxpython/gui_modules/gmodeler.py	2011-10-05 08:05:57 UTC (rev 48626)
@@ -1225,7 +1225,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