mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[pyqgis-console] small fix
This commit is contained in:
parent
94a33cd1c9
commit
a0f8060f98
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user