mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
f28f03afe2
commit
394ddba013
1 changed files with 2 additions and 0 deletions
|
@ -519,6 +519,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();
|
||||
|
@ -557,6 +558,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…
Add table
Add a link
Reference in a new issue