Commit 3b4b3ad6 authored by Sergio Martins's avatar Sergio Martins

Fix local QUrl construction.

QDir does not return a path with scheme, so no local QUrl was constructed.
parent 21b959c2
......@@ -1044,7 +1044,7 @@ void ImportMailJob::copyArchiveMailAgentConfigGroup(KSharedConfig::Ptr archiveCo
newGroup.writeEntry(QLatin1String("saveCollectionId"), id);
QUrl path = newGroup.readEntry("storePath", QUrl());
if (!QDir(path.path()).exists()) {
newGroup.writeEntry(QLatin1String("storePath"), QUrl(QDir::homePath()));
newGroup.writeEntry(QStringLiteral("storePath"), QUrl::fromLocalFile(QDir::homePath()));
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