From 996cb07eb6bd60b2dad32f9ecfd2cf2fb35c6b04 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Mon, 19 Sep 2022 19:35:56 +0100 Subject: [PATCH] Fix crash when sat specific AOS command specified. Fixes #1425 --- plugins/feature/satellitetracker/satellitetrackerworker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/feature/satellitetracker/satellitetrackerworker.cpp b/plugins/feature/satellitetracker/satellitetrackerworker.cpp index f9485212b..abd4db7fc 100644 --- a/plugins/feature/satellitetracker/satellitetrackerworker.cpp +++ b/plugins/feature/satellitetracker/satellitetrackerworker.cpp @@ -656,9 +656,9 @@ void SatelliteTrackerWorker::applyDeviceAOSSettings(const QString& name) { qDebug() << "SatelliteTrackerWorker::aos: executing command: " << devSettings->m_aosCommand; #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) - QStringList allArgs = m_settings.m_aosCommand.split(" ", Qt::SkipEmptyParts); + QStringList allArgs = devSettings->m_aosCommand.split(" ", Qt::SkipEmptyParts); #else - QStringList allArgs = m_settings.m_aosCommand.split(" ", QString::SkipEmptyParts); + QStringList allArgs = devSettings->m_aosCommand.split(" ", QString::SkipEmptyParts); #endif QString program = allArgs[0]; allArgs.pop_front();