Mark date field readonly on trip edit
The date comes from the first dive in trip, thus no need to allow editing (especially since the edited date seems to be discarded in any case). Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cd44aabb5f
commit
09cec219f7
@ -523,6 +523,7 @@ void MainTab::updateDiveInfo(bool clear)
|
||||
ui.TypeLabel->setVisible(false);
|
||||
ui.waterTempLabel->setVisible(false);
|
||||
ui.watertemp->setVisible(false);
|
||||
ui.dateEdit->setReadOnly(true);
|
||||
ui.diveTripLocation->show();
|
||||
ui.location->hide();
|
||||
ui.editDiveSiteButton->hide();
|
||||
@ -561,6 +562,7 @@ void MainTab::updateDiveInfo(bool clear)
|
||||
ui.DiveType->setVisible(true);
|
||||
ui.waterTempLabel->setVisible(true);
|
||||
ui.watertemp->setVisible(true);
|
||||
ui.dateEdit->setReadOnly(false);
|
||||
/* and fill them from the dive */
|
||||
ui.rating->setCurrentStars(displayed_dive.rating);
|
||||
ui.visibility->setCurrentStars(displayed_dive.visibility);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user