diff --git a/ground/src/plugins/notify/notifypluginconfiguration.cpp b/ground/src/plugins/notify/notifypluginconfiguration.cpp index 1c0c3eb48..7721e688c 100644 --- a/ground/src/plugins/notify/notifypluginconfiguration.cpp +++ b/ground/src/plugins/notify/notifypluginconfiguration.cpp @@ -28,6 +28,7 @@ #include "notifypluginconfiguration.h" #include #include +#include "utils/pathutils.h" NotifyPluginConfiguration::NotifyPluginConfiguration(QObject *parent) : @@ -55,7 +56,7 @@ NotifyPluginConfiguration::NotifyPluginConfiguration(QObject *parent) : void NotifyPluginConfiguration::saveState(QSettings* settings) const { - settings->setValue("SoundCollectionPath", getSoundCollectionPath()); + settings->setValue("SoundCollectionPath", Utils::PathUtils().RemoveDataPath(getSoundCollectionPath())); settings->setValue(QLatin1String("CurrentLanguage"), getCurrentLanguage()); settings->setValue(QLatin1String("ObjectField"), getObjectField()); settings->setValue(QLatin1String("DataObject"), getDataObject()); @@ -72,7 +73,7 @@ void NotifyPluginConfiguration::saveState(QSettings* settings) const void NotifyPluginConfiguration::restoreState(QSettings* settings) { //settings = Core::ICore::instance()->settings(); - setSoundCollectionPath(settings->value(QLatin1String("SoundCollectionPath"), tr("")).toString()); + setSoundCollectionPath(Utils::PathUtils().InsertDataPath(settings->value(QLatin1String("SoundCollectionPath"), tr("")).toString())); setCurrentLanguage(settings->value(QLatin1String("CurrentLanguage"), tr("")).toString()); setDataObject(settings->value(QLatin1String("DataObject"), tr("")).toString()); setObjectField(settings->value(QLatin1String("ObjectField"), tr("")).toString());