Explorar el Código

wxGUI: fix usage GraphicalModelerGrassInterface for property dialogs

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58520 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa hace 11 años
padre
commit
8b0412507d
Se han modificado 1 ficheros con 6 adiciones y 4 borrados
  1. 6 4
      gui/wxpython/gmodeler/frame.py

+ 6 - 4
gui/wxpython/gmodeler/frame.py

@@ -675,8 +675,10 @@ class ModelFrame(wx.Frame):
                 self.GetOptData(dcmd = action.GetLog(string = False), layer = action,
                                 params = action.GetParams(), propwin = None)
             else:
-                GUI(parent = self, show = True).ParseCommand(action.GetLog(string = False),
-                                                             completed = (self.GetOptData, action, action.GetParams()))
+                gmodule = GUI(parent = self, show = True,
+                              giface = GraphicalModelerGrassInterface(self.model))
+                gmodule.ParseCommand(action.GetLog(string = False),
+                                     completed = (self.GetOptData, action, action.GetParams()))
         elif win and not win.IsShown():
             win.Show()
         
@@ -1110,8 +1112,8 @@ class ModelEvtHandler(ogl.ShapeEvtHandler):
         if isinstance(shape, ModelAction):
             gmodule = GUI(parent = self.frame, show = True,
                           giface = GraphicalModelerGrassInterface(self.frame.GetModel()))
-            module = gmodule.ParseCommand(shape.GetLog(string = False),
-                                          completed = (self.frame.GetOptData, shape, shape.GetParams()))
+            gmodule.ParseCommand(shape.GetLog(string = False),
+                                 completed = (self.frame.GetOptData, shape, shape.GetParams()))
         
         elif isinstance(shape, ModelData):
             dlg = ModelDataDialog(parent = self.frame, shape = shape)