Skip to content

Commit a0f8060

Browse files
committedOct 24, 2014
[pyqgis-console] small fix
1 parent 94a33cd commit a0f8060

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎python/console/console_editor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,8 @@ class EditorTabWidget(QTabWidget):
851851
def __init__(self, parent):
852852
QTabWidget.__init__(self, parent=None)
853853
self.parent = parent
854+
855+
self.settings = QSettings()
854856

855857
self.idx = -1
856858
# Layout for top frame (restore tabs)
@@ -1109,7 +1111,6 @@ def restoreTabsOrAddNew(self):
11091111
Restore tabs if they are found in the settings. If none are found it will add a new empty tab.
11101112
"""
11111113
# Restore script of the previuos session
1112-
self.settings = QSettings()
11131114
tabScripts = self.settings.value("pythonConsole/tabScripts", [])
11141115
self.restoreTabList = tabScripts
11151116

0 commit comments

Comments
 (0)
Please sign in to comment.