[pyqgis-console] small fix

This commit is contained in:
Salvatore Larosa 2014-10-24 09:07:25 +02:00
parent 94a33cd1c9
commit a0f8060f98

View File

@ -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