소스 검색

Pressing Run button in GUI dialogs open a new dialog (see https://trac.osgeo.org/grass/ticket/3135)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69263 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 8 년 전
부모
커밋
449c894b22
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      gui/wxpython/core/gconsole.py

+ 6 - 3
gui/wxpython/core/gconsole.py

@@ -44,7 +44,7 @@ from gui_core.forms import GUI
 from core.debug import Debug
 from core.debug import Debug
 from core.settings import UserSettings
 from core.settings import UserSettings
 from core.giface import Notification
 from core.giface import Notification
-
+from gui_core.widgets import FormNotebook
 
 
 wxCmdOutput, EVT_CMD_OUTPUT = NewEvent()
 wxCmdOutput, EVT_CMD_OUTPUT = NewEvent()
 wxCmdProgress, EVT_CMD_PROGRESS = NewEvent()
 wxCmdProgress, EVT_CMD_PROGRESS = NewEvent()
@@ -532,8 +532,11 @@ class GConsole(wx.EvtHandler):
                             pymodule.main(self._giface)
                             pymodule.main(self._giface)
                             return
                             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:
                         try:
                             GUI(parent=self._guiparent,
                             GUI(parent=self._guiparent,
                                 giface=self._giface).ParseCommand(command)
                                 giface=self._giface).ParseCommand(command)