From d334f90157a59db51ae7daf7ebfd4b3b61a456b7 Mon Sep 17 00:00:00 2001 From: Fredrik Larsson Date: Sun, 23 Nov 2014 08:13:02 +1100 Subject: [PATCH] Use path utils to search for CloudConfigs --- .../plugins/setupwizard/pages/airframeinitialtuningpage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ground/openpilotgcs/src/plugins/setupwizard/pages/airframeinitialtuningpage.cpp b/ground/openpilotgcs/src/plugins/setupwizard/pages/airframeinitialtuningpage.cpp index 4829cf43d..d85a87296 100644 --- a/ground/openpilotgcs/src/plugins/setupwizard/pages/airframeinitialtuningpage.cpp +++ b/ground/openpilotgcs/src/plugins/setupwizard/pages/airframeinitialtuningpage.cpp @@ -31,6 +31,7 @@ #include #include #include "vehicletemplateexportdialog.h" +#include "utils/pathutils.h" AirframeInitialTuningPage::AirframeInitialTuningPage(SetupWizard *wizard, QWidget *parent) : AbstractWizardPage(wizard, parent), @@ -178,7 +179,7 @@ void AirframeInitialTuningPage::loadValidFiles() } m_templates.clear(); - QDir templateDir(QString("%1/%2/").arg(VehicleTemplateExportDialog::EXPORT_BASE_NAME).arg(m_dir)); + QDir templateDir(QString("%1/%2/").arg(Utils::PathUtils().InsertDataPath("%%DATAPATH%%cloudconfig")).arg(m_dir)); QStringList names; names << "*.optmpl"; templateDir.setNameFilters(names);