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:
Joe Taylor 2018-05-10 16:59:55 +00:00
parent 59251e8948
commit a8524c6183

View File

@ -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_);
}
}