From cd992bd14a292ae7117b40e1c1d6d99660d2e2da Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 29 Jan 2015 14:00:19 -0800 Subject: Don't reimplement the clear() method Much easier and clearer. Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index d13585788..3b7333619 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -300,9 +300,7 @@ void MainWindow::closeCurrentFile() clear_events(); - QList 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() -- cgit v1.2.3-70-g09d2