Clear DC information when closing log file

Fixes #799

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2014-12-30 22:32:10 +02:00 committed by Dirk Hohndel
parent ac067fb424
commit f3446fadc1

View file

@ -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()