From b82cc7d582e8351dfed72eedcda2cb7e1464672f Mon Sep 17 00:00:00 2001 From: Felipe CorrĂȘa da Silva Sanches Date: Mon, 9 Nov 2015 20:08:01 -0200 Subject: Avoid crashing the application in case there's not yet any config file, by passing a default value to the glyphList entry in the TruFont settings. --- Lib/defconQt/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/defconQt/__main__.py') diff --git a/Lib/defconQt/__main__.py b/Lib/defconQt/__main__.py index b64405d..ad5b025 100644 --- a/Lib/defconQt/__main__.py +++ b/Lib/defconQt/__main__.py @@ -23,7 +23,7 @@ def main(): app.setApplicationName("TruFont") app.setWindowIcon(QIcon(":/resources/app.png")) settings = QSettings() - glyphListPath = settings.value("settings/glyphListPath", type=str) + glyphListPath = settings.value("settings/glyphListPath", "", type=str) if glyphListPath and os.path.exists(glyphListPath): from defconQt.util import glyphList try: -- cgit v1.2.3