From ba83ce34e04ba233883bba711a6f39df57fd3e7e Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Thu, 30 Nov 2017 19:36:05 +0100 Subject: In maintab fix change of text between "notes" and "trip notes" Old code was not functional. Signed-off-by: Stefan Fuchs --- desktop-widgets/tab-widgets/maintab.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop-widgets/tab-widgets/maintab.cpp') diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index b41f112e8..0b9c4731b 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -469,7 +469,7 @@ void MainTab::updateDiveInfo(bool clear) ui.dateEdit->setDate(localTime.date()); ui.timeEdit->setTime(localTime.time()); if (MainWindow::instance() && MainWindow::instance()->dive_list()->selectedTrips().count() == 1) { - setTabText(0, tr("Trip notes")); + ui.tabWidget->setTabText(0, tr("Trip notes")); currentTrip = *MainWindow::instance()->dive_list()->selectedTrips().begin(); // only use trip relevant fields ui.divemaster->setVisible(false); @@ -511,7 +511,7 @@ void MainTab::updateDiveInfo(bool clear) ui.duration->setVisible(false); ui.durationLabel->setVisible(false); } else { - setTabText(0, tr("Notes")); + ui.tabWidget->setTabText(0, tr("Notes")); currentTrip = NULL; // make all the fields visible writeable ui.diveTripLocation->hide(); -- cgit v1.2.3-70-g09d2