summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2017-12-06 18:54:46 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-07 21:43:17 -0600
commite9bcca910375f35c63afe8edb4ed0494fe4a4609 (patch)
tree829b51f81301720b228a06f28893919a06827a49 /mobile-widgets/qmlmanager.cpp
parenta2a2aec9f0b6df90ada22ae088deb7552cfb1f92 (diff)
downloadsubsurface-e9bcca910375f35c63afe8edb4ed0494fe4a4609.tar.gz
Mobile: Enable editing multiple buddies
While the autocomplete function only works for the first entry adding multiple comma separated buddies can still be done. Fixes #608 Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 413364a65..21ce76735 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -1008,11 +1008,9 @@ void QMLManager::commitChanges(QString diveId, QString date, QString location, Q
if (buddy.contains(",")){
buddy = buddy.replace(QRegExp("\\s*,\\s*"), ", ");
}
- if (!buddy.contains("Multiple Buddies")) {
- diveChanged = true;
- free(d->buddy);
- d->buddy = strdup(qPrintable(buddy));
- }
+ diveChanged = true;
+ free(d->buddy);
+ d->buddy = strdup(qPrintable(buddy));
}
if (myDive->divemaster() != diveMaster) {
diveChanged = true;