Browse Source

wxGUI/modeler: don't show prop dialog when command has some options
defined


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48626 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 13 years ago
parent
commit
a26d80133a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/gui_modules/gmodeler.py

+ 1 - 1
gui/wxpython/gui_modules/gmodeler.py

@@ -1225,7 +1225,7 @@ class ModelFrame(wx.Frame):
         
         
         # show properties dialog
         # show properties dialog
         win = action.GetPropDialog()
         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),
             module = menuform.GUI(parent = self, show = True).ParseCommand(action.GetLog(string = False),
                                                                            completed = (self.GetOptData, action, action.GetParams()))
                                                                            completed = (self.GetOptData, action, action.GetParams()))
         elif win and not win.IsShown():
         elif win and not win.IsShown():