diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-06-16 14:06:35 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-06-17 06:53:13 +0900 |
commit | 1f654050fa7e461166ee4d8b46d66b4ca91f31d4 (patch) | |
tree | f6158e8fc750ccd5de64b15a04a242f72ca3cd67 /desktop-widgets/mainwindow.cpp | |
parent | 8e8cd7a8d9304b96cc80fbd2ea63e28d9f7595a3 (diff) | |
download | subsurface-1f654050fa7e461166ee4d8b46d66b4ca91f31d4.tar.gz |
Dive computers: turn QMultiMap into sorted vector
The list of known dive computers was stored in a multi-map indexed
by the device name. Turn this into a sorted QVector. Thus, no
map-to-list conversion is needed in the device editing dialog,
which distinctly simplifies the code.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 1e7b28ab0..95efcca63 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -770,7 +770,7 @@ void MainWindow::closeCurrentFile() clear_events(); - dcList.dcMap.clear(); + dcList.dcs.clear(); } void MainWindow::updateCloudOnlineStatus() |