Fix crash when sat specific AOS command specified. Fixes #1425

pull/1426/head
Jon Beniston 2022-09-19 19:35:56 +01:00
rodzic ea24077e2b
commit 996cb07eb6
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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();