diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-01-13 22:05:55 +1300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-13 22:05:55 +1300 |
commit | a0c52237ea60d119ae486c94584de1a24210b7de (patch) | |
tree | 5103c0f64815913e16eada3f03c9f3eca3739417 /qt-ui/downloadfromdivecomputer.cpp | |
parent | af3dd1e8350b900ea44deff581d6e7e733bd4f5b (diff) | |
download | subsurface-a0c52237ea60d119ae486c94584de1a24210b7de.tar.gz |
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>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r-- | qt-ui/downloadfromdivecomputer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 |