[GRASS-SVN] r58616 - grass/trunk/gui/wxpython/gmodeler
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 5 09:58:07 PST 2014
Author: martinl
Date: 2014-01-05 09:58:06 -0800 (Sun, 05 Jan 2014)
New Revision: 58616
Modified:
grass/trunk/gui/wxpython/gmodeler/frame.py
Log:
wxGUI/modeler: show dialog also for commands with no argument
Modified: grass/trunk/gui/wxpython/gmodeler/frame.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/frame.py 2014-01-05 16:38:57 UTC (rev 58615)
+++ grass/trunk/gui/wxpython/gmodeler/frame.py 2014-01-05 17:58:06 UTC (rev 58616)
@@ -11,7 +11,7 @@
- frame::ItemPanel
- frame::PythonPanel
-(C) 2010-2012 by the GRASS Development Team
+(C) 2010-2014 by the GRASS Development Team
This program is free software under the GNU General Public License
(>=v2). Read the file COPYING that comes with GRASS for details.
@@ -672,7 +672,8 @@
# show properties dialog
win = action.GetPropDialog()
if not win:
- if action.IsValid():
+ cmdLength = len(action.GetLog(string=False))
+ if cmdLength > 1 and action.IsValid():
self.GetOptData(dcmd = action.GetLog(string = False), layer = action,
params = action.GetParams(), propwin = None)
else:
More information about the grass-commit
mailing list