aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrien Tétar2015-11-10 08:40:20 +0100
committerAdrien Tétar2015-11-10 08:40:20 +0100
commit34a3ecbf640a268e407bbb2c144749b4b832c77f (patch)
treec19e6ed3be81da1867d773d1b3a95ca46f26c65a
parent3fc6e4a8c7a50cd1f1250921ff5a795a5c4eba81 (diff)
parentb82cc7d582e8351dfed72eedcda2cb7e1464672f (diff)
downloadtrufont-34a3ecbf640a268e407bbb2c144749b4b832c77f.tar.bz2
Merge pull request #134 from felipesanches/glyphlist_default_value
Avoid crashing the application in case there's not yet any config file
-rw-r--r--Lib/defconQt/__main__.py2
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: