[GRASS-SVN] r41592 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 28 10:42:43 EDT 2010


Author: martinl
Date: 2010-03-28 10:42:42 -0400 (Sun, 28 Mar 2010)
New Revision: 41592

Modified:
   grass/trunk/gui/wxpython/gui_modules/prompt.py
Log:
fix wxGUI prompt


Modified: grass/trunk/gui/wxpython/gui_modules/prompt.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/prompt.py	2010-03-28 13:20:43 UTC (rev 41591)
+++ grass/trunk/gui/wxpython/gui_modules/prompt.py	2010-03-28 14:42:42 UTC (rev 41592)
@@ -473,7 +473,7 @@
         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 @@
             
         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
             



More information about the grass-commit mailing list