diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index d5580c93c..baa9a5eaa 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -42,6 +42,7 @@ from openlp.core.common.i18n import LanguageManager, UiStrings, translate from openlp.core.common.mixins import LogMixin, RegistryProperties from openlp.core.common.path import create_paths from openlp.core.common.registry import Registry +from openlp.core.common.settings import Settings from openlp.core.display.screens import ScreenList from openlp.core.lib.plugin import PluginStatus from openlp.core.lib.ui import create_action @@ -868,7 +869,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, LogMixin, RegistryPropert create_paths(temp_dir_path) temp_config_path = temp_dir_path / import_file_path.name shutil.copyfile(import_file_path, temp_config_path) - import_settings = QtCore.QSettings(str(temp_config_path), QtCore.QSettings.IniFormat) + import_settings = Settings(str(temp_config_path), QtCore.QSettings.IniFormat) self.log_info('hook upgrade_plugin_settings') self.plugin_manager.hook_upgrade_plugin_settings(import_settings)