summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/maintab.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index baeb81696..234a01c43 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -996,6 +996,11 @@ void MainTab::on_location_textChanged(const QString &text)
{
if (editMode == NONE)
return;
+ if (editMode == TRIP && MainWindow::instance() && MainWindow::instance()->dive_list()->selectedTrips().count() == 1) {
+ // we are editing a trip
+ dive_trip_t *currentTrip = *MainWindow::instance()->dive_list()->selectedTrips().begin();
+ EDIT_TRIP_TEXT(currentTrip->location, text);
+ }
markChangedWidget(ui.location);
}