diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-18 19:08:58 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-19 20:12:59 +0900 |
commit | 5e3f7ba22fe2dcb8af597d011bba16b3a7317c2a (patch) | |
tree | 59093563a68a469edcc1013cb8c4fc473e605273 /qt-ui/mainwindow.h | |
parent | b36c8f07c7019fac1bc72d3b44a4486ea6d3458d (diff) | |
download | subsurface-5e3f7ba22fe2dcb8af597d011bba16b3a7317c2a.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r-- | qt-ui/mainwindow.h | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |