Browse Source

wxGUI/modeler: show dialog also for commands with no argument

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58616 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 years ago
parent
commit
51cb95e59f
1 changed files with 3 additions and 2 deletions
  1. 3 2
      gui/wxpython/gmodeler/frame.py

+ 3 - 2
gui/wxpython/gmodeler/frame.py

@@ -11,7 +11,7 @@ Classes:
  - 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 @@ class ModelFrame(wx.Frame):
         # 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: