From b5cc387f03dc686af63315a61779090c60c6d582 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 7 May 2014 23:53:52 +0200 Subject: Apply the edit of trip locations This re-adds this code that got removed in a209dfbfd53 ("Multi dive edit: don't change location texts until user saves the change") Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qt-ui') 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); } -- cgit v1.2.3-70-g09d2