Explorar o código

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