diff options
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 33c5055bd..8ec339e03 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -548,6 +548,7 @@ void MainTab::updateDiveInfo(bool clear) ui.editDiveSiteButton->hide(); // rename the remaining fields and fill data from selected trip ui.LocationLabel->setText(tr("Trip location")); + ui.diveTripLocation->setText(currentTrip->location); ui.locationTags->clear(); //TODO: Fix this. //ui.location->setText(currentTrip->location); @@ -1154,6 +1155,7 @@ void MainTab::resetPallete() ui.dateEdit->setPalette(p); ui.timeEdit->setPalette(p); ui.tagWidget->setPalette(p); + ui.diveTripLocation->setPalette(p); } #define EDIT_TEXT2(what, text) \ @@ -1507,7 +1509,7 @@ void MainTab::on_location_diveSiteSelected() updateDisplayedDiveSite(); } -void MainTab::on_diveTripLocation_textChanged(const QString& text) +void MainTab::on_diveTripLocation_textEdited(const QString& text) { if (currentTrip) { free(displayedTrip.location); |