changed keys

This commit is contained in:
Andreas Preikschat 2013-01-18 13:25:05 +01:00
parent aa5f38624d
commit 254f6915ed
3 changed files with 7 additions and 6 deletions

View File

@ -231,11 +231,11 @@ class Settings(QtCore.QSettings):
__obsolete_settings__ = [ __obsolete_settings__ = [
(u'bibles/bookname language', u'bibles/book name language', []), (u'bibles/bookname language', u'bibles/book name language', []),
(u'general/enable slide loop', u'advanced/slide limits', [(SlideLimits.Wrap, True), (SlideLimits.End, False)]) (u'general/enable slide loop', u'advanced/slide limits', [(SlideLimits.Wrap, True), (SlideLimits.End, False)])
# song usage/last directory 1 -> last directory import # songusage/last directory 1 -> songusage/last directory export
# bibles/last directory 1 -> bibles/last directory backup # bibles/last directory 1 -> bibles/last directory backup
# songs/last directory 1 -> songs/last directory import
# themes/last directory -> themes/last directory import # themes/last directory -> themes/last directory import
# themes/last directory 1-> themes/last directory export # themes/last directory 1-> themes/last directory export
# songs/last directory 1 -> songs/last directory import
] ]
@staticmethod @staticmethod

View File

@ -61,7 +61,7 @@ class SongUsageDetailForm(QtGui.QDialog, Ui_SongUsageDetailDialog):
fromDate = Settings().value(self.plugin.settingsSection + u'/from date') fromDate = Settings().value(self.plugin.settingsSection + u'/from date')
self.fromDate.setSelectedDate(fromDate) self.fromDate.setSelectedDate(fromDate)
self.toDate.setSelectedDate(toDate) self.toDate.setSelectedDate(toDate)
self.fileLineEdit.setText(Settings().value(self.plugin.settingsSection + u'/last directory')) self.fileLineEdit.setText(Settings().value(self.plugin.settingsSection + u'/last directory export'))
def defineOutputLocation(self): def defineOutputLocation(self):
""" """
@ -69,9 +69,9 @@ class SongUsageDetailForm(QtGui.QDialog, Ui_SongUsageDetailDialog):
""" """
path = QtGui.QFileDialog.getExistingDirectory(self, path = QtGui.QFileDialog.getExistingDirectory(self,
translate('SongUsagePlugin.SongUsageDetailForm', 'Output File Location'), translate('SongUsagePlugin.SongUsageDetailForm', 'Output File Location'),
Settings().value(self.plugin.settingsSection + u'/last directory')) Settings().value(self.plugin.settingsSection + u'/last directory export'))
if path: if path:
Settings().setValue(self.plugin.settingsSection + u'/last directory', path) Settings().setValue(self.plugin.settingsSection + u'/last directory export', path)
self.fileLineEdit.setText(path) self.fileLineEdit.setText(path)
def accept(self): def accept(self):

View File

@ -52,7 +52,8 @@ __default_settings__ = {
u'songusage/db type': u'sqlite', u'songusage/db type': u'sqlite',
u'songusage/active': False, u'songusage/active': False,
u'songusage/to date': QtCore.QDate(YEAR, 8, 31), u'songusage/to date': QtCore.QDate(YEAR, 8, 31),
u'songusage/from date': QtCore.QDate(YEAR - 1, 9, 1) u'songusage/from date': QtCore.QDate(YEAR - 1, 9, 1),
u'songusage/last directory export': u''
} }