mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
ac067fb424
commit
f3446fadc1
1 changed files with 4 additions and 0 deletions
|
@ -283,6 +283,10 @@ void MainWindow::closeCurrentFile()
|
||||||
mark_divelist_changed(false);
|
mark_divelist_changed(false);
|
||||||
|
|
||||||
clear_events();
|
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()
|
void MainWindow::on_actionClose_triggered()
|
||||||
|
|
Loading…
Add table
Reference in a new issue