1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Get case insensitive sorting in the Map Settings Dialog for Map Items

This commit is contained in:
Daniele Forsi 2024-06-25 23:41:10 +02:00
parent 0398414e2c
commit c06e740ffc

View File

@ -87,7 +87,7 @@ MapSettingsDialog::MapSettingsDialog(MapSettings *settings, QWidget* parent) :
QList<MapSettings::MapItemSettings *> itemSettings = m_settings->m_itemSettings.values();
std::sort(itemSettings.begin(), itemSettings.end(),
[](const MapSettings::MapItemSettings* a, const MapSettings::MapItemSettings* b) -> bool {
return a->m_group < b->m_group;
return a->m_group.compare(b->m_group, Qt::CaseInsensitive) < 0;
});
QListIterator<MapSettings::MapItemSettings *> itr(itemSettings);
while (itr.hasNext())