Commit 4b47d6d7 authored by Laurent Montel's avatar Laurent Montel 😁

Find more code where I need to use QFileInfo::exists()

parent 4fde84c7
......@@ -264,8 +264,7 @@ QString Utils::storeResources(KZip *archive, const QString &identifier, const QS
const QString agentConfigFileName = QLatin1String("agent_config_") + identifier;
const QString agentConfigFileNamePath = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) + QLatin1String("/akonadi/") + agentConfigFileName;
QFile agentConfigFileNameFile(agentConfigFileNamePath);
if (agentConfigFileNameFile.exists()) {
if (QFileInfo::exists(agentConfigFileNamePath)) {
fileAdded = archive->addLocalFile(agentConfigFileNamePath, path + agentConfigFileName);
if (!fileAdded) {
return i18n("Resource file \"%1\" cannot be added to backup file.", agentFileName);
......
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