diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-06-03 22:44:37 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2019-06-07 04:47:39 +0300 |
commit | 0e1b07bd6ffcee4de28442d13304978977b88e46 (patch) | |
tree | 42386dbc8a525b7ab7437a82195b5cfbd7a996e6 /desktop-widgets/tab-widgets/maintab.cpp | |
parent | cf3bb91ec030311716bfec60b9bdc4aeb7dd3f92 (diff) | |
download | subsurface-0e1b07bd6ffcee4de28442d13304978977b88e46.tar.gz |
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>
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.cpp')
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); |