diff options
| author | Felipe Corrêa da Silva Sanches | 2015-11-09 20:08:01 -0200 | 
|---|---|---|
| committer | Felipe Corrêa da Silva Sanches | 2015-11-09 20:08:01 -0200 | 
| commit | b82cc7d582e8351dfed72eedcda2cb7e1464672f (patch) | |
| tree | c19e6ed3be81da1867d773d1b3a95ca46f26c65a | |
| parent | 3fc6e4a8c7a50cd1f1250921ff5a795a5c4eba81 (diff) | |
| download | trufont-b82cc7d582e8351dfed72eedcda2cb7e1464672f.tar.bz2 | |
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.
| -rw-r--r-- | Lib/defconQt/__main__.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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: | 
