Desktop: don't show location-popup button in trip-edit mode

The location fields are hidden in trip mode. Only the location-popup
button was shown. Hide it as well.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-06-03 22:44:37 +02:00 committed by Lubomir I. Ivanov
parent cf3bb91ec0
commit 0e1b07bd6f

View file

@ -468,6 +468,7 @@ void MainTab::updateDiveInfo()
ui.timeEdit->setVisible(false);
ui.diveTripLocation->show();
ui.location->hide();
ui.locationPopupButton->hide();
ui.editDiveSiteButton->hide();
// rename the remaining fields and fill data from selected trip
ui.LocationLabel->setText(tr("Trip location"));
@ -499,6 +500,7 @@ void MainTab::updateDiveInfo()
// make all the fields visible writeable
ui.diveTripLocation->hide();
ui.location->show();
ui.locationPopupButton->show();
ui.editDiveSiteButton->show();
ui.divemaster->setVisible(true);
ui.buddy->setVisible(true);