diff options
author | Tobias Fella <fella@posteo.de> | 2021-09-07 16:17:23 +0200 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2021-09-07 16:19:49 +0200 |
commit | 6d3bc1667e084fa2fc7b2c547374d2c62a29e8df (patch) | |
tree | e37119186600f4cdc9a623ce6f8d6d5438957e57 | |
parent | 67186252eac4f3890d5abae31e74efee956b2f5d (diff) | |
download | libquotient-6d3bc1667e084fa2fc7b2c547374d2c62a29e8df.tar.gz libquotient-6d3bc1667e084fa2fc7b2c547374d2c62a29e8df.zip |
Fix showing non-animated Images
-rw-r--r-- | lib/mxcreply.cpp | 2 |
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(); }); } |