diff --git a/ground/gcs/src/plugins/pfdqml/pfdqmlcontext.cpp b/ground/gcs/src/plugins/pfdqml/pfdqmlcontext.cpp index 4ff9e814c..d5b22b691 100644 --- a/ground/gcs/src/plugins/pfdqml/pfdqmlcontext.cpp +++ b/ground/gcs/src/plugins/pfdqml/pfdqmlcontext.cpp @@ -328,12 +328,12 @@ void PfdQmlContext::loadConfiguration(PfdQmlGadgetConfiguration *config) void PfdQmlContext::saveState(QSettings &settings) const { - settings.setValue("modelFile", modelFile()); + settings.setValue("modelFile", Utils::RemoveDataPath(modelFile())); } void PfdQmlContext::restoreState(QSettings &settings) { - QString file = settings.value("modelFile").toString(); + QString file = Utils::InsertDataPath(settings.value("modelFile").toString()); if (!file.isEmpty()) { setModelFile(file);