aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-25 11:05:09 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-25 11:05:09 -0800
commiteec732548b9f5d8cf792c896fa3a66f1db1043f2 (patch)
tree9cdef12b580789d9dc72432daa3a15b42d337e72
parentd0fbfc7a9c999bdab79884f3991650a1c0866adb (diff)
downloadsubsurface-eec732548b9f5d8cf792c896fa3a66f1db1043f2.tar.gz
Switch tab title to Trip Notes when handling a trip
And switch back to Dive Notes when back to looking at a dive. This makes things more consistent... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/maintab.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 363158ec8..f132d2fec 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -293,6 +293,7 @@ void MainTab::updateDiveInfo(int dive)
updateGpsCoordinates(d);
ui.dateTimeEdit->setDateTime(QDateTime::fromTime_t(d->when - gettimezoneoffset()));
if (mainWindow() && mainWindow()->dive_list()->selectedTrips.count() == 1) {
+ setTabText(0, tr("Trip Notes"));
// only use trip relevant fields
ui.coordinates->setVisible(false);
ui.CoordinatedLabel->setVisible(false);
@@ -318,6 +319,7 @@ void MainTab::updateDiveInfo(int dive)
ui.NotesLabel->setText(tr("Trip Notes"));
ui.notes->setText(currentTrip->notes);
} else {
+ setTabText(0, tr("Dive Notes"));
// make all the fields visible writeable
ui.coordinates->setVisible(true);
ui.CoordinatedLabel->setVisible(true);