mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't reimplement the clear() method
Much easier and clearer. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4e40872fc0
commit
cd992bd14a
3 changed files with 2 additions and 12 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue