Commit 2dd02610 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

We need to store it as qstring not qurl

parent 624b2850
Pipeline #95386 canceled with stage
......@@ -1005,9 +1005,9 @@ void ImportMailJobInterface::copyArchiveMailAgentConfigGroup(const KSharedConfig
KConfigGroup newGroup(archiveConfigDestination, archiveGroupPattern + QString::number(id));
oldGroup.copyTo(&newGroup);
newGroup.writeEntry(QStringLiteral("saveCollectionId"), id);
QUrl storePath = newGroup.readEntry("storePath", QUrl());
if (!QDir(storePath.path()).exists()) {
newGroup.writeEntry(QStringLiteral("storePath"), QUrl::fromLocalFile(QDir::homePath()));
QString storePath = newGroup.readEntry("storePath", QString());
if (!QDir(storePath).exists()) {
newGroup.writeEntry(QStringLiteral("storePath"), QDir::homePath());
}
}
oldGroup.deleteGroup();
......
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