Remove useless capture

This commit is contained in:
Nicolas Werner 2021-06-11 21:25:06 +02:00
parent 4a6e62d1ee
commit 1d80f5d0b4
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -396,18 +396,17 @@ TimelineViewManager::openImageOverlayInternal(QString eventId, QImage img)
imgDialog->showFullScreen(); imgDialog->showFullScreen();
auto room = rooms_->currentRoom(); auto room = rooms_->currentRoom();
connect( connect(imgDialog, &dialogs::ImageOverlay::saving, room, [eventId, imgDialog, room]() {
imgDialog, &dialogs::ImageOverlay::saving, room, [this, eventId, imgDialog, room]() { // hide the overlay while presenting the save dialog for better
// hide the overlay while presenting the save dialog for better // cross platform support.
// cross platform support. imgDialog->hide();
imgDialog->hide();
if (!room->saveMedia(eventId)) { if (!room->saveMedia(eventId)) {
imgDialog->show(); imgDialog->show();
} else { } else {
imgDialog->close(); imgDialog->close();
} }
}); });
} }
void void