[PATCH] Only mark location changed when in edit mode
Anton Lundin
glance at acc.umu.se
Wed May 7 14:51:39 PDT 2014
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 <glance at acc.umu.se>
---
qt-ui/maintab.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index e02fa19..af666fe 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);
}
--
1.9.1
More information about the subsurface
mailing list