mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-14 15:33:34 -04:00
Sort presets before display in the presets window
This commit is contained in:
@@ -92,3 +92,8 @@ void MainSettings::deletePreset(const Preset* preset)
|
||||
m_presets.removeAll((Preset*)preset);
|
||||
delete (Preset*)preset;
|
||||
}
|
||||
|
||||
void MainSettings::sortPresets()
|
||||
{
|
||||
qSort(m_presets.begin(), m_presets.end(), Preset::presetCompare);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user