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 a209dfbfd5 ("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>
This commit is contained in:
Anton Lundin 2014-05-07 23:51:39 +02:00 committed by Dirk Hohndel
parent 94937d2ad9
commit b59a106251

View file

@ -994,6 +994,8 @@ void MainTab::on_tagWidget_textChanged()
void MainTab::on_location_textChanged(const QString &text)
{
if (editMode == NONE)
return;
markChangedWidget(ui.location);
}