diff options
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index d13585788..3b7333619 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -300,9 +300,7 @@ void MainWindow::closeCurrentFile() clear_events(); - QList<DiveComputerNode> values = dcList.dcMap.values(); - for (int i = 0; i < values.size(); i++) - dcList.rmDC(values.at(i).model, values.at(i).deviceId); + dcList.dcMap.clear(); } void MainWindow::on_actionClose_triggered() |