mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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:
parent
cf3bb91ec0
commit
0e1b07bd6f
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue