diff --git a/openlp/core/common/settings.py b/openlp/core/common/settings.py index ca59d4e6f..48d8710a0 100644 --- a/openlp/core/common/settings.py +++ b/openlp/core/common/settings.py @@ -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): """ diff --git a/openlp/plugins/songusage/songusageplugin.py b/openlp/plugins/songusage/songusageplugin.py index d0c2f7fe7..8d5e08322 100644 --- a/openlp/plugins/songusage/songusageplugin.py +++ b/openlp/plugins/songusage/songusageplugin.py @@ -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),