From 6cc886493756b8108c64e993a33f8d011270c457 Mon Sep 17 00:00:00 2001 From: Olivier Keshavjee Date: Wed, 22 Nov 2017 08:52:30 +0100 Subject: [PATCH] Fixes #225: Manuskript fails to run in Ubuntu 14.04 --- manuskript/ui/welcome.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/manuskript/ui/welcome.py b/manuskript/ui/welcome.py index 9ca55796..d3858e82 100644 --- a/manuskript/ui/welcome.py +++ b/manuskript/ui/welcome.py @@ -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: