Explorar o código

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 %!s(int64=11) %!d(string=hai) anos
pai
achega
51cb95e59f
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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: