aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-29 09:11:42 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-29 09:11:42 -0700
commitedea3012527419d87839cd04bbe042a58ba53759 (patch)
tree3fdb4e1cd8d71644ef6ef08f8f28f32f61724ca3 /qt-ui
parent28bd1fdcb595622a7b3eb3ebc1726d35c85790ff (diff)
downloadsubsurface-edea3012527419d87839cd04bbe042a58ba53759.tar.gz
Don't mess with the selection when closing a file
Our core structures are kept consistent by calling delete_single_dive() and there is no reason at all to even touch the UI selection as this all goes away with cleanUpEmpty() Fixes #660 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/mainwindow.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index c84766038..194ea1acb 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -265,10 +265,6 @@ void MainWindow::closeCurrentFile()
while (dive_table.nr)
delete_single_dive(0);
- ui.ListWidget->clearSelection();
- /* clear the selection and the statistics */
- selected_dive = -1;
-
free((void *)existing_filename);
existing_filename = NULL;