aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-16 21:39:40 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-16 22:11:24 +0900
commit56480bc96b28356c44547cc3d9ea1afbda9f04f9 (patch)
treed6cd72528693a3329506e66e2de6c3869d498188 /lib/connection.cpp
parentf49d3d45451bf66237c3fc05a1ef8f77fcaec1e6 (diff)
downloadlibquotient-56480bc96b28356c44547cc3d9ea1afbda9f04f9.tar.gz
libquotient-56480bc96b28356c44547cc3d9ea1afbda9f04f9.zip
Connection::uploadFile(): Fix a missing negation
...leading to uploadFile() being never even functional - the code really needs tests. Closes #221.
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp2
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";