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 <gla...@acc.umu.se>
---
 qt-ui/maintab.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index af666fe..b85b508 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);
 }
 
-- 
1.9.1

_______________________________________________
subsurface mailing list
subsurface@hohndel.org
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to