From a0c52237ea60d119ae486c94584de1a24210b7de Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 13 Jan 2015 22:05:55 +1300 Subject: 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 --- qt-ui/downloadfromdivecomputer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index ef59c1804..f382e0b2b 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -239,6 +239,8 @@ void DownloadFromDCWidget::fill_computer_list() descriptorLookup[QString(vendor) + QString(product)] = descriptor; } dc_iterator_free(iterator); + Q_FOREACH (QString vendor, vendorList) + qSort(productList[vendor]); /* and add the Uemis Zurich which we are handling internally THIS IS A HACK as we magically have a data structure here that -- cgit v1.2.3-70-g09d2