mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 05:38:46 -05:00
Case-insensitive sort for the list of Rig types. Tnx to W9MDB for the patch.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8655 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
59251e8948
commit
a8524c6183
@ -2768,7 +2768,10 @@ void Configuration::impl::enumerate_rigs ()
|
||||
}
|
||||
else
|
||||
{
|
||||
ui_->rig_combo_box->addItem (r.key (), r.value ().model_number_);
|
||||
int i;
|
||||
for(i=1;i<ui_->rig_combo_box->count() && (r.key().toLower() > ui_->rig_combo_box->itemText(i).toLower());++i);
|
||||
if (i < ui_->rig_combo_box->count()) ui_->rig_combo_box->insertItem (i, r.key (), r.value ().model_number_);
|
||||
else ui_->rig_combo_box->addItem (r.key (), r.value ().model_number_);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user