From 5e3f7ba22fe2dcb8af597d011bba16b3a7317c2a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 18 May 2014 19:08:58 +0900 Subject: Fix selection after downloading dives from the dive computer If we successfully download dives, the old selection should be cleared and the one of the newly downloaded dives should be selected. I decided to pick the last dive downloaded, which for most dive computers (but for example not for the Uemis SDA) will be the first or earliest of the dives. That seems much more intuitive than keeping the previous selection around. Of course this is harder than it should be because of the way we track selections and because we need a consistent dive list model in order to change the selection. Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qt-ui/mainwindow.h') diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index 60081e957..d6775c602 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -152,7 +152,8 @@ protected: public slots: void readSettings(); - void refreshDisplay(bool recreateDiveList = true); + void refreshDisplay(bool doRecreateDiveList = true); + void recreateDiveList(); void showProfile(); void editCurrentDive(); -- cgit v1.2.3-70-g09d2