Fixed some cosmedics

This commit is contained in:
Stevan Pettit 2012-06-10 10:29:50 -04:00
parent 245c0acd89
commit 8365d6f589
2 changed files with 3 additions and 3 deletions

View File

@ -276,8 +276,8 @@ def main(args=None):
u'..', u'..', u'Data',)) u'..', u'..', u'Data',))
log.info(u'Data path: %s' % data_path) log.info(u'Data path: %s' % data_path)
# Point to our data path # Point to our data path
portable_settings.setValue(u'advanced/data path',data_path) portable_settings.setValue(u'advanced/data path', data_path)
portable_settings.setValue(u'advanced/is portable',True) portable_settings.setValue(u'advanced/is portable', True)
portable_settings.sync() portable_settings.sync()
else: else:
app.setApplicationName(u'OpenLP') app.setApplicationName(u'OpenLP')

View File

@ -59,7 +59,7 @@ class Settings(QtCore.QSettings):
def __init__(self, *args): def __init__(self, *args):
if not args and Settings.filePath and (Settings.defaultFormat() == if not args and Settings.filePath and (Settings.defaultFormat() ==
Settings.IniFormat): Settings.IniFormat):
QtCore.QSettings.__init__(self, Settings.filePath, QtCore.QSettings.__init__(self, Settings.filePath,
Settings.IniFormat) Settings.IniFormat)
else: else: