mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Lint code
This commit is contained in:
parent
e36b090c5b
commit
0edd75949b
1 changed files with 3 additions and 1 deletions
|
@ -339,7 +339,9 @@ TimelineViewManager::toggleCameraView()
|
||||||
void
|
void
|
||||||
TimelineViewManager::openImageOverlay(QString mxcUrl, QString eventId) const
|
TimelineViewManager::openImageOverlay(QString mxcUrl, QString eventId) const
|
||||||
{
|
{
|
||||||
if (mxcUrl.isEmpty() || mxcUrl.isNull()) { return; }
|
if (mxcUrl.isEmpty() || mxcUrl.isNull()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
QQuickImageResponse *imgResponse =
|
QQuickImageResponse *imgResponse =
|
||||||
imgProvider->requestImageResponse(mxcUrl.remove("mxc://"), QSize());
|
imgProvider->requestImageResponse(mxcUrl.remove("mxc://"), QSize());
|
||||||
connect(imgResponse, &QQuickImageResponse::finished, this, [this, eventId, imgResponse]() {
|
connect(imgResponse, &QQuickImageResponse::finished, this, [this, eventId, imgResponse]() {
|
||||||
|
|
Loading…
Reference in a new issue