summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/kolabaccount.cpp5
-rw-r--r--migrationutility/googlesourceaccount.cpp6
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/kolabaccount.cpp b/lib/kolabaccount.cpp
index 5925fc5..4c03524 100644
--- a/lib/kolabaccount.cpp
+++ b/lib/kolabaccount.cpp
@@ -436,8 +436,11 @@ QString KolabAccount::applyTargetFolderTransformations(const QString &folder) co
QString newName(folder);
foreach (const QString &searchString, mRegextrans.keys()) {
if (folder.contains(searchString)) {
- return mRegextrans.value(searchString);
+ newName = mRegextrans.value(searchString);
+ break;
}
}
+ //normalize so it works as imap mailbox name
+ newName.replace(QLatin1String("@"), QLatin1String("at"));
return newName;
}
diff --git a/migrationutility/googlesourceaccount.cpp b/migrationutility/googlesourceaccount.cpp
index 7e7ba22..c46a319 100644
--- a/migrationutility/googlesourceaccount.cpp
+++ b/migrationutility/googlesourceaccount.cpp
@@ -187,10 +187,8 @@ QPair<QString, QString> FetchCalendarFoldersJob::getFolder(const KGAPI2::ObjectP
const KGAPI2::Calendar &calendar = *object.dynamicCast<KGAPI2::Calendar>();
//TODO prefix with Calendar/
QString name = calendar.title();
- //normalize so it works as imap mailbox name
- name.replace(QLatin1String("@"), QLatin1String("at"));
-// Debug() << "calendar: " << name;
- return qMakePair<QString, QString>(calendar.uid(), name);
+// Debug() << "calendar: " << calendar.title();
+ return qMakePair<QString, QString>(calendar.uid(), calendar.title());
}
FetchTaskObjectsJob::FetchTaskObjectsJob(const QString &tasklistId, const KGAPI2::AccountPtr& account, QObject* parent)