[GRASS-SVN] r69396 - grass/branches/releasebranch_7_0/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 7 11:59:46 PDT 2016


Author: martinl
Date: 2016-09-07 11:59:46 -0700 (Wed, 07 Sep 2016)
New Revision: 69396

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/core/gconsole.py
Log:
Pressing Run button in GUI dialogs open a new dialog (fixes #3135)


Modified: grass/branches/releasebranch_7_0/gui/wxpython/core/gconsole.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/core/gconsole.py	2016-09-07 18:51:20 UTC (rev 69395)
+++ grass/branches/releasebranch_7_0/gui/wxpython/core/gconsole.py	2016-09-07 18:59:46 UTC (rev 69396)
@@ -44,8 +44,8 @@
 from core.debug import Debug
 from core.settings import UserSettings
 from core.giface import Notification
+from gui_core.widgets import FormNotebook
 
-
 wxCmdOutput, EVT_CMD_OUTPUT = NewEvent()
 wxCmdProgress, EVT_CMD_PROGRESS = NewEvent()
 wxCmdRun, EVT_CMD_RUN = NewEvent()
@@ -494,9 +494,11 @@
                                                                       'opt': p.get('name', '')})
                             return
 
+                # no arguments given
                 if len(command) == 1 and hasParams and \
-                        command[0] != 'v.krige':
-                    # no arguments given
+                   not isinstance(self._guiparent, FormNotebook) and \
+                   command[0] != 'v.krige':
+                    # also parent must be checked, see #3135 for details
                     try:
                         GUI(parent=self._guiparent, giface=self._giface).ParseCommand(command)
                     except GException as e:



More information about the grass-commit mailing list