aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-11-16 07:35:57 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-16 11:34:12 -0800
commit010f5f2abc6f6781282ec55b4749eb632d505be1 (patch)
tree5ce11b9b4d98ffc0fcc05ca3bd22cfba3b81fe82 /desktop-widgets/tab-widgets/maintab.cpp
parentadb0adb1d2ee8661283bf4d1f9246d65d8203244 (diff)
downloadsubsurface-010f5f2abc6f6781282ec55b4749eb632d505be1.tar.gz
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>
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.cpp')
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp
index 2202b96d3..707aa2f2a 100644
--- a/desktop-widgets/tab-widgets/maintab.cpp
+++ b/desktop-widgets/tab-widgets/maintab.cpp
@@ -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);