From b59a10625163035426e422c000471f162ab25f17 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 7 May 2014 23:51:39 +0200 Subject: Only mark location changed when in edit mode Otherwise the code loading a dive into the field would mark it as changed. 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 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/maintab.cpp') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 8bb0d6630..baeb81696 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -994,6 +994,8 @@ void MainTab::on_tagWidget_textChanged() void MainTab::on_location_textChanged(const QString &text) { + if (editMode == NONE) + return; markChangedWidget(ui.location); } -- cgit v1.2.3-70-g09d2