Browse Source

plugins/feature/aprs: Fix copy-paste error in message column settings

Fix Coverity CID 652244 by clearing the message table column
indexes instead of the status table column sizes when
reversing APRS message table settings.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.1.0
Robin Getz 4 weeks ago
parent
commit
30ee35595d
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 2
      plugins/feature/aprs/aprs.cpp

2
plugins/feature/aprs/aprs.cpp

@ -896,7 +896,7 @@ void APRS::webapiReverseSendSettings(const QList<QString>& featureSettingsKeys, @@ -896,7 +896,7 @@ void APRS::webapiReverseSendSettings(const QList<QString>& featureSettingsKeys,
swgAPRSSettings->setMessagesTableColumnIndexes(new QList<int>());
}
swgAPRSSettings->getStatusTableColumnSizes()->clear();
swgAPRSSettings->getMessagesTableColumnIndexes()->clear();
for (int i = 0; i < APRS_MESSAGES_TABLE_COLUMNS; i++) {
swgAPRSSettings->getMessagesTableColumnIndexes()->push_back(settings.m_messagesTableColumnIndexes[i]);

Loading…
Cancel
Save