Commit e3c0e311 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix import/export GlobalCollectionView settings

parent 80e9747c
......@@ -145,6 +145,13 @@ void ExportCalendarJobInterface::backupConfig()
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;
......
......@@ -227,6 +227,7 @@ void ImportCalendarJobInterface::importkorganizerConfig(const KArchiveFile *file
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