Fix sorting of numeric host lists (P25/NXDN)

main
Doug McLain 1 year ago
parent 6d73e2eb4d
commit 84b7d459d3

@ -902,7 +902,10 @@ void DroidStar::process_p25_hosts()
while (i != m_hostmap.constEnd()) {
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();
}
@ -943,7 +946,10 @@ void DroidStar::process_nxdn_hosts()
while (i != m_hostmap.constEnd()) {
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();
}

Loading…
Cancel
Save