diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-07-02 12:58:41 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-03 09:37:55 -0700 |
commit | 635a7ab77171e9789f13accfa5904afe27460f70 (patch) | |
tree | 804c5d34b3a446f6b2b5d672b10fe6355c188607 /qt-ui/mainwindow.cpp | |
parent | 2a55e55868870731258fe2230321ed23bc0cbaed (diff) | |
download | subsurface-635a7ab77171e9789f13accfa5904afe27460f70.tar.gz |
UI restructure: updateDiveInfo shows the selected dive by default
So don't be redundant.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 4e5ea56dc..219d14803 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -176,7 +176,7 @@ void MainWindow::current_dive_changed(int divenr) ui.globe->centerOnCurrentDive(); } ui.newProfile->plotDive(); - ui.InfoWidget->updateDiveInfo(divenr); + ui.InfoWidget->updateDiveInfo(); } void MainWindow::on_actionNew_triggered() @@ -409,7 +409,7 @@ void MainWindow::createFakeDiveForAddAndPlan() ui.ListWidget->unselectDives(); ui.ListWidget->reload(DiveTripModel::CURRENT); ui.ListWidget->selectDives(QList<int>() << dive_table.nr - 1); - ui.InfoWidget->updateDiveInfo(selected_dive); + ui.InfoWidget->updateDiveInfo(); } void MainWindow::removeFakeDiveForAddAndPlan() @@ -651,7 +651,7 @@ void MainWindow::on_actionPreviousDC_triggered() unsigned nrdc = number_of_computers(current_dive); dc_number = (dc_number + nrdc - 1) % nrdc; ui.newProfile->plotDive(); - ui.InfoWidget->updateDiveInfo(selected_dive); + ui.InfoWidget->updateDiveInfo(); } void MainWindow::on_actionNextDC_triggered() @@ -659,7 +659,7 @@ void MainWindow::on_actionNextDC_triggered() unsigned nrdc = number_of_computers(current_dive); dc_number = (dc_number + 1) % nrdc; ui.newProfile->plotDive(); - ui.InfoWidget->updateDiveInfo(selected_dive); + ui.InfoWidget->updateDiveInfo(); } void MainWindow::on_actionFullScreen_triggered(bool checked) |