aboutsummaryrefslogtreecommitdiff
path: root/lib/mxcreply.cpp
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2021-09-07 16:17:23 +0200
committerTobias Fella <fella@posteo.de>2021-09-07 16:19:49 +0200
commit6d3bc1667e084fa2fc7b2c547374d2c62a29e8df (patch)
treee37119186600f4cdc9a623ce6f8d6d5438957e57 /lib/mxcreply.cpp
parent67186252eac4f3890d5abae31e74efee956b2f5d (diff)
downloadlibquotient-6d3bc1667e084fa2fc7b2c547374d2c62a29e8df.tar.gz
libquotient-6d3bc1667e084fa2fc7b2c547374d2c62a29e8df.zip
Fix showing non-animated Images
Diffstat (limited to 'lib/mxcreply.cpp')
-rw-r--r--lib/mxcreply.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mxcreply.cpp b/lib/mxcreply.cpp
index 49ebe603..f389ac85 100644
--- a/lib/mxcreply.cpp
+++ b/lib/mxcreply.cpp
@@ -23,6 +23,7 @@ MxcReply::MxcReply(QNetworkReply* reply)
d->m_reply = reply;
connect(d->m_reply, &QNetworkReply::finished, this, [this]() {
setError(d->m_reply->error(), d->m_reply->errorString());
+ setOpenMode(ReadOnly);
Q_EMIT finished();
});
}
@@ -34,6 +35,7 @@ MxcReply::MxcReply(QNetworkReply* reply, Room* room, const QString &eventId)
d->m_reply = reply;
connect(d->m_reply, &QNetworkReply::finished, this, [this, eventId]() {
setError(d->m_reply->error(), d->m_reply->errorString());
+ setOpenMode(ReadOnly);
Q_EMIT finished();
});
}