forked from openlp/openlp
fixed bug doing bad things
This commit is contained in:
parent
75a86f05ee
commit
725bd7dcf6
@ -188,7 +188,7 @@ class Settings(QtCore.QSettings):
|
|||||||
u'themes/theme level': ThemeLevel.Song,
|
u'themes/theme level': ThemeLevel.Song,
|
||||||
u'themes/global theme': u'',
|
u'themes/global theme': u'',
|
||||||
u'themes/last directory': u'',
|
u'themes/last directory': u'',
|
||||||
u'user interface/main window position': QtCore.QPoint(),
|
u'user interface/main window position': QtCore.QPoint(0, 0),
|
||||||
u'user interface/preview panel': True,
|
u'user interface/preview panel': True,
|
||||||
u'user interface/live panel': True,
|
u'user interface/live panel': True,
|
||||||
u'user interface/main window geometry': QtCore.QByteArray(),
|
u'user interface/main window geometry': QtCore.QByteArray(),
|
||||||
@ -235,9 +235,10 @@ class Settings(QtCore.QSettings):
|
|||||||
``key``
|
``key``
|
||||||
The key to return the value from.
|
The key to return the value from.
|
||||||
"""
|
"""
|
||||||
if u'/' not in key:
|
|
||||||
key = u'/'.join((self.group(), key))
|
|
||||||
try:
|
try:
|
||||||
|
if self.group():
|
||||||
|
defaultValue = Settings.__default_settings__[self.group() + u'/' + key]
|
||||||
|
else:
|
||||||
defaultValue = Settings.__default_settings__[key]
|
defaultValue = Settings.__default_settings__[key]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
print u'KeyError: %s' % key
|
print u'KeyError: %s' % key
|
||||||
|
Loading…
Reference in New Issue
Block a user