fixes #1532193 - Typos in songusageplugin.py annother fix shamelessly ported from 2.4

This commit is contained in:
Philip Ridout 2017-10-08 20:41:07 +01:00
parent 37da12affd
commit 2be17b5c6f
2 changed files with 9 additions and 3 deletions

View File

@ -270,6 +270,12 @@ class Settings(QtCore.QSettings):
('media/last directory', 'media/last directory', [(str_to_path, None)])
]
__setting_upgrade_3__ = [
('songuasge/db password', 'songusage/db password', [])
('songuasge/db hostname', 'songusage/db hostname', [])
('songuasge/db database', 'songusage/db database', [])
]
@staticmethod
def extend_default_settings(default_values):
"""

View File

@ -44,9 +44,9 @@ if QtCore.QDate().currentDate().month() < 9:
__default_settings__ = {
'songusage/db type': 'sqlite',
'songusage/db username': '',
'songuasge/db password': '',
'songuasge/db hostname': '',
'songuasge/db database': '',
'songusage/db password': '',
'songusage/db hostname': '',
'songusage/db database': '',
'songusage/active': False,
'songusage/to date': QtCore.QDate(YEAR, 8, 31),
'songusage/from date': QtCore.QDate(YEAR - 1, 9, 1),