summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index df813bc5f..70a5bad0a 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -1502,14 +1502,16 @@ void MainTab::on_location_diveSiteSelected()
}
}
+ updateDisplayedDiveSite();
+}
+
+void MainTab::on_diveTripLocation_textChanged(const QString& text)
+{
if (currentTrip) {
free(displayedTrip.location);
- displayedTrip.location = strdup(qPrintable(ui.location->text()));
- markChangedWidget(ui.location);
- return;
+ displayedTrip.location = strdup(qPrintable(text));
+ markChangedWidget(ui.diveTripLocation);
}
-
- updateDisplayedDiveSite();
}
void MainTab::on_suit_textChanged(const QString &text)