summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/mainwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 5a35b1366..c578cb3d1 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -283,6 +283,10 @@ void MainWindow::closeCurrentFile()
mark_divelist_changed(false);
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);
}
void MainWindow::on_actionClose_triggered()