aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-09-18 23:08:39 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-09-18 23:08:39 -0500
commit5a96389cd3039ac822482232b3102106bbe70a5a (patch)
treedad7c1789c9e26e27673ec1a44a404ded0529899 /qt-ui/maintab.cpp
parent64b014aefb2c69f20d1a15e4e011481a5f98f9da (diff)
downloadsubsurface-5a96389cd3039ac822482232b3102106bbe70a5a.tar.gz
Fix updateDiveInfo to clear coordinates when called with invalid dive
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 18702e7ce..a0fcdf744 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -306,6 +306,7 @@ void MainTab::updateDiveInfo(int dive)
} else {
/* clear the fields */
ui->rating->setCurrentStars(0);
+ ui->coordinates->clear();
ui->sacText->clear();
ui->otuText->clear();
ui->oxygenHeliumText->clear();