summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-10-01 18:11:03 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-01 18:01:34 -0400
commit6979ebfdae328799a5c3f8dabc82c15299d56943 (patch)
tree453cd3decde4c64392734f05aa736870201bd83d /qt-ui/maintab.cpp
parentd25e456fccabac55d3102f82524c26cb4d7bdc7c (diff)
downloadsubsurface-6979ebfdae328799a5c3f8dabc82c15299d56943.tar.gz
Make dive trip location edit work again.
:D Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp4
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);