diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-06-02 20:36:41 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-02 20:36:41 +0900 |
commit | de8395e09e0e6c6ada06dbd3d5e6a053fd821a71 (patch) | |
tree | e56f5f3101fbbc274eafad70060f71d3e499ad54 /qt-ui/mainwindow.cpp | |
parent | a98a7a135199bbe3dc25290da47c1915861b2300 (diff) | |
parent | e88a9aa83eacaa6a003ca440947fa20c9b598834 (diff) | |
download | subsurface-de8395e09e0e6c6ada06dbd3d5e6a053fd821a71.tar.gz |
Merge branch 'selection'
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index e04d824fb..f1004c556 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -63,9 +63,11 @@ void MainWindow::refreshDisplay() void MainWindow::current_dive_changed(int divenr) { - select_dive(divenr); - ui->globe->centerOn(get_dive(selected_dive)); - redrawProfile(); + if (amount_selected && divenr >= 0) { + select_dive(divenr); + ui->globe->centerOn(get_dive(selected_dive)); + redrawProfile(); + } ui->InfoWidget->updateDiveInfo(divenr); } |