From 195918293c7f27cbc763a3562da21f0ea42f478e Mon Sep 17 00:00:00 2001 From: Salvatore Larosa Date: Mon, 29 Apr 2013 00:27:26 +0200 Subject: [PATCH] [pyqgis-console] small fix for show/hide editor action --- python/console/console_editor.py | 3 +-- python/console/console_output.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/python/console/console_editor.py b/python/console/console_editor.py index 7d5221b3d7b0..0aecc9406f5d 100644 --- a/python/console/console_editor.py +++ b/python/console/console_editor.py @@ -379,8 +379,7 @@ def codepad(self): self.parent.pc.callWidgetMessageBarEditor(msgText + str(e.args)) def hideEditor(self): - self.parent.pc.widgetEditor.hide() - self.parent.pc.listClassMethod.hide() + self.parent.pc.splitterObj.hide() self.parent.pc.showEditorButton.setChecked(False) def commentEditorCode(self, commentCheck): diff --git a/python/console/console_output.py b/python/console/console_output.py index 487b489e798a..aaba5996d703 100644 --- a/python/console/console_output.py +++ b/python/console/console_output.py @@ -214,7 +214,7 @@ def hideToolBar(self): self.shell.setFocus() def showEditor(self): - Ed = self.parent.widgetEditor + Ed = self.parent.splitterObj if not Ed.isVisible(): Ed.show() self.parent.showEditorButton.setChecked(True)