[GRASS-SVN] r69263 - grass/trunk/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Aug 27 03:04:53 PDT 2016
Author: martinl
Date: 2016-08-27 03:04:52 -0700 (Sat, 27 Aug 2016)
New Revision: 69263
Modified:
grass/trunk/gui/wxpython/core/gconsole.py
Log:
Pressing Run button in GUI dialogs open a new dialog (see #3135)
Modified: grass/trunk/gui/wxpython/core/gconsole.py
===================================================================
--- grass/trunk/gui/wxpython/core/gconsole.py 2016-08-26 09:28:51 UTC (rev 69262)
+++ grass/trunk/gui/wxpython/core/gconsole.py 2016-08-27 10:04:52 UTC (rev 69263)
@@ -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()
@@ -532,8 +532,11 @@
pymodule.main(self._giface)
return
- if hasParams and command[0] != 'v.krige':
- # no arguments given
+ # no arguments given
+ if hasParams and \
+ 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)
More information about the grass-commit
mailing list