diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-05-07 23:51:39 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-07 15:18:53 -0700 |
commit | b59a10625163035426e422c000471f162ab25f17 (patch) | |
tree | 0b0212eefcf515b8f831045be95e09119bd9330a /qt-ui | |
parent | 94937d2ad9a5781c1b1d134a87cfc459c3b48cd0 (diff) | |
download | subsurface-b59a10625163035426e422c000471f162ab25f17.tar.gz |
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 <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/maintab.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |