Skip to content
Permalink
Browse files

[pyqgis-console] small fix

  • Loading branch information
slarosa committed Oct 24, 2014
1 parent 94a33cd commit a0f8060f98a9a7c99543e5998a9e405ab78c350e
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/console/console_editor.py
@@ -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 @@ 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

0 comments on commit a0f8060

Please sign in to comment.
You can’t perform that action at this time.