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

Fix import/export GlobalCollectionView settings

(cherry picked from commit e3c0e311)
parent 822dbf6c
......@@ -157,6 +157,13 @@ void ExportCalendarJob::backupConfig()
Utils::convertCollectionListToRealPath(group, selectionKey);
}
const QString globalCollectionViewStr(QStringLiteral("GlobalCollectionView"));
if (korganizerConfig->hasGroup(globalCollectionViewStr)) {
KConfigGroup group = korganizerConfig->group(globalCollectionViewStr);
const QString selectionKey(QStringLiteral("Expansion"));
convertCollectionListToRealPath(group, selectionKey);
}
korganizerConfig->sync();
backupFile(tmp.fileName(), Utils::configsPath(), korganizerStr);
delete korganizerConfig;
......
......@@ -295,6 +295,7 @@ void ImportCalendarJob::importkorganizerConfig(const KArchiveFile *file, const Q
convertCollectionListStrToAkonadiId(korganizerConfig, QStringLiteral("GlobalCollectionSelection"), QStringLiteral("Selection"), true);
convertCollectionListStrToAkonadiId(korganizerConfig, QStringLiteral("CollectionTreeView"), QStringLiteral("Expansion"), true);
convertCollectionListStrToAkonadiId(korganizerConfig, QStringLiteral("GlobalCollectionView"), QStringLiteral("Expansion"), true);
korganizerConfig->sync();
}
......
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