We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 94a33cd commit a0f8060Copy full SHA for a0f8060
python/console/console_editor.py
@@ -851,6 +851,8 @@ class EditorTabWidget(QTabWidget):
851
def __init__(self, parent):
852
QTabWidget.__init__(self, parent=None)
853
self.parent = parent
854
+
855
+ self.settings = QSettings()
856
857
self.idx = -1
858
# Layout for top frame (restore tabs)
@@ -1109,7 +1111,6 @@ def restoreTabsOrAddNew(self):
1109
1111
Restore tabs if they are found in the settings. If none are found it will add a new empty tab.
1110
1112
"""
1113
# Restore script of the previuos session
- self.settings = QSettings()
1114
tabScripts = self.settings.value("pythonConsole/tabScripts", [])
1115
self.restoreTabList = tabScripts
1116
0 commit comments