diff options
author | Lakshman <acrlakshman@gmail.com> | 2014-04-05 11:03:45 -0500 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-04-05 13:27:53 -0700 |
commit | ecc8c1d995be8b55e0a8a77d9676ede79fa22fb4 (patch) | |
tree | 69b5503eb333681e06b7ea4a54e96051996b0d00 /qt-ui/maintab.cpp | |
parent | d6af09b26956d127d35454cfa42c2ff78402d6f2 (diff) | |
download | subsurface-ecc8c1d995be8b55e0a8a77d9676ede79fa22fb4.tar.gz |
Remove check option to show units in text label
Currently the feature to show temperature units while adding dive is
provided through checkbox in preferences->units section. This patch
disables this checkbox and always enables this feature.
Signed-off-by: Lakshman Anumolu <acrlakshman@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 70a9dc3cf..227d89b58 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -202,7 +202,7 @@ void MainTab::hideMessage() ui.diveEquipmentMessage->animatedHide(); ui.diveInfoMessage->animatedHide(); ui.diveStatisticsMessage->animatedHide(); - updateTextLabels(); + updateTextLabels(false); } void MainTab::closeMessage() @@ -224,12 +224,12 @@ void MainTab::displayMessage(QString str) ui.diveInfoMessage->animatedShow(); ui.diveStatisticsMessage->setText(str); ui.diveStatisticsMessage->animatedShow(); - updateTextLabels(true); + updateTextLabels(); } void MainTab::updateTextLabels(bool showUnits) { - if (showUnits && prefs.text_label_with_units) { + if (showUnits) { ui.airTempLabel->setText(tr("Air temp [%1]").arg(get_temp_unit())); ui.waterTempLabel->setText(tr("Water temp [%1]").arg(get_temp_unit())); } else { |