Skip to content

Commit 01c87ce

Browse files
committed
LP-565 pfd gadget: make saved model file path relative to GCS data path
1 parent 213893e commit 01c87ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ground/gcs/src/plugins/pfdqml/pfdqmlcontext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,12 @@ void PfdQmlContext::loadConfiguration(PfdQmlGadgetConfiguration *config)
328328

329329
void PfdQmlContext::saveState(QSettings &settings) const
330330
{
331-
settings.setValue("modelFile", modelFile());
331+
settings.setValue("modelFile", Utils::RemoveDataPath(modelFile()));
332332
}
333333

334334
void PfdQmlContext::restoreState(QSettings &settings)
335335
{
336-
QString file = settings.value("modelFile").toString();
336+
QString file = Utils::InsertDataPath(settings.value("modelFile").toString());
337337

338338
if (!file.isEmpty()) {
339339
setModelFile(file);

0 commit comments

Comments
 (0)