diff options
-rw-r--r-- | lib/connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index 610c0661..8107393d 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -467,7 +467,7 @@ UploadContentJob* Connection::uploadFile(const QString& fileName, const QString& contentType) { auto sourceFile = new QFile(fileName); - if (sourceFile->open(QIODevice::ReadOnly)) + if (!sourceFile->open(QIODevice::ReadOnly)) { qCWarning(MAIN) << "Couldn't open" << sourceFile->fileName() << "for reading"; |