Skip to content

Commit

Permalink
[pyqgis-console] small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Oct 24, 2014
1 parent 94a33cd commit a0f8060
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/console/console_editor.py
Expand Up @@ -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)
Expand Down Expand Up @@ -1109,7 +1111,6 @@ def restoreTabsOrAddNew(self):
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

Expand Down

0 comments on commit a0f8060

Please sign in to comment.