mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +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);
|
||||
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue