diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-06-05 17:15:32 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-05 17:15:32 +0900 |
commit | 4d937051ca4390874f741c1a313fccf622cffcd3 (patch) | |
tree | 2b1da321ef09c9292f9313a5cf6d5ed6c005e5bd /qt-ui/mainwindow.cpp | |
parent | b115423aa1d2261090ac960ba3eb5a81fac76875 (diff) | |
download | subsurface-4d937051ca4390874f741c1a313fccf622cffcd3.tar.gz |
Fixing some issues with the dive selection after OK on preferences
These changes should be correct - but they still don't fix the problem
that after we click 'OK' on the preferences (regardless of whether any
changes were made), the first dive is set as current dive and shown in the
map window.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index dbf3b9c73..3c550439b 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -58,7 +58,7 @@ MainWindow::MainWindow() : ui(new Ui::MainWindow()), helpView(0) // this gets called after we download dives from a divecomputer void MainWindow::refreshDisplay() { - if (!selected_dive) + if (selected_dive == -1) current_dive_changed(dive_table.nr - 1); ui->ListWidget->reload(); } |