Fixes #225: Manuskript fails to run in Ubuntu 14.04

This commit is contained in:
Olivier Keshavjee 2017-11-22 08:52:30 +01:00
parent 45efab9750
commit 6cc8864937

View file

@ -68,8 +68,15 @@ class welcome(QWidget, Ui_welcome):
self.mw.loadProject(last)
def getAutoLoadValues(self):
"""
Reads manuskript system's settings and returns a tupple:
- `bool`: whether manuskript should automatically load
the last openend project or display the
welcome widget.
- `str`: the absolute path to the last opened project.
"""
sttgns = QSettings()
autoLoad = sttgns.value("autoLoad", type=bool)
autoLoad = sttgns.value("autoLoad", defaultValue=False, type=bool)
if autoLoad and sttgns.contains("lastProject"):
last = sttgns.value("lastProject")
else: