mirror of
https://github.com/qgis/QGIS.git
synced 2025-06-19 00:02:48 -04:00
[pyqgis-console] small fix
This commit is contained in:
parent
94a33cd1c9
commit
a0f8060f98
@ -852,6 +852,8 @@ class EditorTabWidget(QTabWidget):
|
|||||||
QTabWidget.__init__(self, parent=None)
|
QTabWidget.__init__(self, parent=None)
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
|
|
||||||
|
self.settings = QSettings()
|
||||||
|
|
||||||
self.idx = -1
|
self.idx = -1
|
||||||
# Layout for top frame (restore tabs)
|
# Layout for top frame (restore tabs)
|
||||||
self.layoutTopFrame = QGridLayout(self)
|
self.layoutTopFrame = QGridLayout(self)
|
||||||
@ -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 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
|
# Restore script of the previuos session
|
||||||
self.settings = QSettings()
|
|
||||||
tabScripts = self.settings.value("pythonConsole/tabScripts", [])
|
tabScripts = self.settings.value("pythonConsole/tabScripts", [])
|
||||||
self.restoreTabList = tabScripts
|
self.restoreTabList = tabScripts
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user