From 0e1b07bd6ffcee4de28442d13304978977b88e46 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 3 Jun 2019 22:44:37 +0200 Subject: 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 --- desktop-widgets/tab-widgets/maintab.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'desktop-widgets') diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index af1928e2d..c9758dec9 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -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); -- cgit v1.2.3-70-g09d2