Bläddra i källkod

fix wxGUI prompt

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41592 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 år sedan
förälder
incheckning
4031e6e0aa
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      gui/wxpython/gui_modules/prompt.py

+ 2 - 2
gui/wxpython/gui_modules/prompt.py

@@ -473,7 +473,7 @@ class GPrompt(object):
         self.parent = parent                 # GMConsole
         self.panel  = self.parent.GetPanel()
         
-        if self.parent.parent.GetName() == "LayerManager":
+        if self.parent.parent.GetName() not in ("LayerManager", "Modeler"):
             self.standAlone = True
         else:
             self.standAlone = False
@@ -843,7 +843,7 @@ class GPromptSTC(GPrompt, wx.stc.StyledTextCtrl):
             
         elif event.GetKeyCode() == wx.WXK_RETURN and \
                 self.AutoCompActive() == False:
-            if self.parent.GetName() != "ModelDialog":
+            if self.parent.GetName() == "ModelerDialog":
                 self.parent.OnOk(None)
                 return