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>
This commit is contained in:
Dirk Hohndel 2014-07-29 09:11:42 -07:00
parent 28bd1fdcb5
commit edea301252

View file

@ -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;