mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-17 02:14:33 +12:00
Fixes #225: Manuskript fails to run in Ubuntu 14.04
This commit is contained in:
parent
45efab9750
commit
6cc8864937
|
@ -68,8 +68,15 @@ class welcome(QWidget, Ui_welcome):
|
||||||
self.mw.loadProject(last)
|
self.mw.loadProject(last)
|
||||||
|
|
||||||
def getAutoLoadValues(self):
|
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()
|
sttgns = QSettings()
|
||||||
autoLoad = sttgns.value("autoLoad", type=bool)
|
autoLoad = sttgns.value("autoLoad", defaultValue=False, type=bool)
|
||||||
if autoLoad and sttgns.contains("lastProject"):
|
if autoLoad and sttgns.contains("lastProject"):
|
||||||
last = sttgns.value("lastProject")
|
last = sttgns.value("lastProject")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue