mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
In maintab fix change of text between "notes" and "trip notes"
Old code was not functional. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
f8a200dbce
commit
ba83ce34e0
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue