diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2017-11-30 19:36:05 +0100 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-12-01 03:45:59 +0100 |
commit | ba83ce34e04ba233883bba711a6f39df57fd3e7e (patch) | |
tree | ced397a73efaec45dde51fd3c18fa75340c3d856 /desktop-widgets/tab-widgets/maintab.cpp | |
parent | f8a200dbcef6e86db159ae844e18fd438a87b7fb (diff) | |
download | subsurface-ba83ce34e04ba233883bba711a6f39df57fd3e7e.tar.gz |
In maintab fix change of text between "notes" and "trip notes"
Old code was not functional.
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.cpp')
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |