aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-05-06 20:55:28 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-06 20:56:41 -0700
commit5e4f06e6ad2da553ac7b47bf6837d8053b888f6f (patch)
treeab6c4fb18a213d570e472a5591dc95ce9e32e1a9 /qt-ui/maintab.cpp
parent265376db067156356d208e1d36b420199a162c54 (diff)
downloadsubsurface-5e4f06e6ad2da553ac7b47bf6837d8053b888f6f.tar.gz
Enable the code that was #if 0'ed out
Linking error is fixed. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 5f668b2be..89501fc07 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -103,11 +103,9 @@ void MainTab::updateDiveInfo(int dive)
ui->airPressureText->setText(QString("%1mbar").arg(d->surface_pressure.mbar));
else
ui->airPressureText->setText(QString(""));
-#if 0 /* this fails to link, even though the function is defined in statistics.c / statistics.h */
if (d)
ui->gasUsedText->setText(get_volume_string(get_gas_used(d), TRUE));
else
-#endif
ui->gasUsedText->setText("");
}