mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive download UI: sort the dive computer dropdown
I could have sworn we did this at some point. The vendors are already sorted, but the products for each vendor should be sorted, too. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
af3dd1e835
commit
a0c52237ea
1 changed files with 2 additions and 0 deletions
|
@ -239,6 +239,8 @@ void DownloadFromDCWidget::fill_computer_list()
|
||||||
descriptorLookup[QString(vendor) + QString(product)] = descriptor;
|
descriptorLookup[QString(vendor) + QString(product)] = descriptor;
|
||||||
}
|
}
|
||||||
dc_iterator_free(iterator);
|
dc_iterator_free(iterator);
|
||||||
|
Q_FOREACH (QString vendor, vendorList)
|
||||||
|
qSort(productList[vendor]);
|
||||||
|
|
||||||
/* and add the Uemis Zurich which we are handling internally
|
/* and add the Uemis Zurich which we are handling internally
|
||||||
THIS IS A HACK as we magically have a data structure here that
|
THIS IS A HACK as we magically have a data structure here that
|
||||||
|
|
Loading…
Add table
Reference in a new issue