Fix sorting of numeric host lists (P25/NXDN)

This commit is contained in:
Doug McLain 2023-09-29 12:30:20 -04:00
parent 6d73e2eb4d
commit 84b7d459d3

View file

@ -903,6 +903,9 @@ void DroidStar::process_p25_hosts()
m_hostsmodel.append(i.key());
++i;
}
QMap<int, QString> m;
for (auto s : m_hostsmodel) m[s.toInt()] = s;
m_hostsmodel = QStringList(m.values());
}
f.close();
}
@ -944,6 +947,9 @@ void DroidStar::process_nxdn_hosts()
m_hostsmodel.append(i.key());
++i;
}
QMap<int, QString> m;
for (auto s : m_hostsmodel) m[s.toInt()] = s;
m_hostsmodel = QStringList(m.values());
}
f.close();
}