mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
In maintab disable correct label when dive trip selected
Until now accidentally the dateLabel was disabled and the timeLabel was enabled. Changed this the other (correct) way round. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
adb0adb1d2
commit
010f5f2abc
2 changed files with 4 additions and 4 deletions
|
@ -493,7 +493,7 @@ void MainTab::updateDiveInfo(bool clear)
|
|||
ui.waterTempLabel->setVisible(false);
|
||||
ui.watertemp->setVisible(false);
|
||||
ui.dateEdit->setReadOnly(true);
|
||||
ui.label->setVisible(false);
|
||||
ui.timeLabel->setVisible(false);
|
||||
ui.timeEdit->setVisible(false);
|
||||
ui.diveTripLocation->show();
|
||||
ui.location->hide();
|
||||
|
@ -538,7 +538,7 @@ void MainTab::updateDiveInfo(bool clear)
|
|||
ui.waterTempLabel->setVisible(true);
|
||||
ui.watertemp->setVisible(true);
|
||||
ui.dateEdit->setReadOnly(false);
|
||||
ui.label->setVisible(true);
|
||||
ui.timeLabel->setVisible(true);
|
||||
ui.timeEdit->setVisible(true);
|
||||
/* and fill them from the dive */
|
||||
ui.rating->setCurrentStars(displayed_dive.rating);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue