Commit 7bcf9c01 authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 1c1366f9
......@@ -268,8 +268,9 @@ void AbstractImportExportJob::convertRealPathToCollectionList(KConfigGroup &grou
Akonadi::Collection::Id AbstractImportExportJob::convertPathToId(const QString &path)
{
if (mHashConvertPathCollectionId.contains(path)) {
return mHashConvertPathCollectionId.value(path);
Akonadi::Collection::Id val = mHashConvertPathCollectionId.value(path, -1);
if (val != -1) {
return val;
}
const Akonadi::Collection::Id id = MailCommon::Util::convertFolderPathToCollectionId(path);
if (id != -1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment