diff options
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 81c8f324f..8ce1a4616 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -1093,6 +1093,9 @@ void QMLManager::commitChanges(QString diveId, QString date, QString location, Q d->buddy = copy_qstring(buddy); } if (myDive->divemaster() != diveMaster) { + if (diveMaster.contains(",")){ + diveMaster = diveMaster.replace(QRegExp("\\s*,\\s*"), ", "); + } diveChanged = true; free(d->divemaster); d->divemaster = copy_qstring(diveMaster); |