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

Use directly QFileInfo::exists here

parent 77b76298
......@@ -249,13 +249,13 @@ bool Maildir::Private::accessIsPossible(bool createMissingFolders)
paths.prepend(path);
Q_FOREACH (const QString &p, paths) {
if (!QFile::exists(p)) {
if (!QFileInfo::exists(p)) {
if (!createMissingFolders) {
lastError = i18n("Error opening %1; this folder is missing.", p);
return false;
}
QDir().mkpath(p);
if (!QFile::exists(p)) {
if (!QFileInfo::exists(p)) {
lastError = i18n("Error opening %1; this folder is missing.", p);
return false;
}
......
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