summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-04-09 22:38:34 +0200
committerMontel Laurent <[email protected]>2017-04-09 22:38:34 +0200
commit4b47d6d78883226dd4d0e17090484fd79dfc4c7a (patch)
treef0b9d9d019a8f6aef49d8903f2d950a33c2b5c73
parent4fde84c745e1dd5dc5924941340310f205c41b5e (diff)
Find more code where I need to use QFileInfo::exists()
-rw-r--r--core/utils.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/utils.cpp b/core/utils.cpp
index c77a40d..694b184 100644
--- a/core/utils.cpp
+++ b/core/utils.cpp
@@ -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);