[PATCH] Apply the edit of trip locations
Anton Lundin
glance at acc.umu.se
Wed May 7 14:53:52 PDT 2014
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 <glance at 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
More information about the subsurface
mailing list