From e175b1d1ab76ee8edcd3beb1c027a58a336af96e Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 26 Nov 2013 15:44:18 -0200 Subject: Remember Trip Selection. This patch remembers the trip selection across the Dive Tree Model. It's a tiny bit big because we used to have a variable 'selected trips' that's now calculed dynamically - this is more future proof. This is a start of Un-cluttering the view ( for 4.1 I hope to reduce the code in this class to nearly a half. ) Fixes #303 Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/mainwindow.cpp') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 68d23dffe..85047847b 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -149,7 +149,7 @@ void MainWindow::on_actionClose_triggered() while (dive_table.nr) delete_single_dive(0); - dive_list()->selectedTrips.clear(); + dive_list()->clearSelection(); /* clear the selection and the statistics */ selected_dive = -1; -- cgit v1.2.3-70-g09d2