diff options
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index a1923850f..df813bc5f 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -541,6 +541,9 @@ void MainTab::updateDiveInfo(bool clear) ui.TypeLabel->setVisible(false); ui.waterTempLabel->setVisible(false); ui.watertemp->setVisible(false); + ui.diveTripLocation->show(); + ui.location->hide(); + ui.editDiveSiteButton->hide(); // rename the remaining fields and fill data from selected trip ui.LocationLabel->setText(tr("Trip location")); ui.locationTags->clear(); @@ -554,6 +557,9 @@ void MainTab::updateDiveInfo(bool clear) setTabText(0, tr("Notes")); currentTrip = NULL; // make all the fields visible writeable + ui.diveTripLocation->hide(); + ui.location->show(); + ui.editDiveSiteButton->show(); ui.divemaster->setVisible(true); ui.buddy->setVisible(true); ui.suit->setVisible(true); |