From a0f8060f98a9a7c99543e5998a9e405ab78c350e Mon Sep 17 00:00:00 2001 From: Salvatore Larosa Date: Fri, 24 Oct 2014 09:07:25 +0200 Subject: [PATCH] [pyqgis-console] small fix --- python/console/console_editor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/console/console_editor.py b/python/console/console_editor.py index 77a20821ec3..f054076ef3c 100644 --- a/python/console/console_editor.py +++ b/python/console/console_editor.py @@ -851,6 +851,8 @@ class EditorTabWidget(QTabWidget): def __init__(self, parent): QTabWidget.__init__(self, parent=None) self.parent = parent + + self.settings = QSettings() self.idx = -1 # Layout for top frame (restore tabs) @@ -1109,7 +1111,6 @@ class EditorTabWidget(QTabWidget): Restore tabs if they are found in the settings. If none are found it will add a new empty tab. """ # Restore script of the previuos session - self.settings = QSettings() tabScripts = self.settings.value("pythonConsole/tabScripts", []) self.restoreTabList = tabScripts