summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets
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
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')
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp4
-rw-r--r--desktop-widgets/tab-widgets/maintab.ui4
2 files changed, 4 insertions, 4 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);
diff --git a/desktop-widgets/tab-widgets/maintab.ui b/desktop-widgets/tab-widgets/maintab.ui
index 25dcab600..6f02c775d 100644
--- a/desktop-widgets/tab-widgets/maintab.ui
+++ b/desktop-widgets/tab-widgets/maintab.ui
@@ -82,7 +82,7 @@
</widget>
</item>
<item row="0" column="0">
- <widget class="QLabel" name="label">
+ <widget class="QLabel" name="dateLabel">
<property name="text">
<string>Date</string>
</property>
@@ -92,7 +92,7 @@
</widget>
</item>
<item row="0" column="1">
- <widget class="QLabel" name="label_6">
+ <widget class="QLabel" name="timeLabel">
<property name="text">
<string>Time</string>
</property>