Added ability to send not loaded GIFs with Ctrl key.

This commit is contained in:
23rd 2019-05-25 17:15:37 +03:00 committed by John Preston
parent 1dd461b24a
commit cf45b0d317
1 changed files with 2 additions and 1 deletions

View File

@ -358,7 +358,8 @@ void GifsListWidget::selectInlineResult(int row, int column) {
photo->thumbnail()->loadEvenCancelled(Data::FileOrigin());
}
} else if (const auto document = item->getDocument()) {
if (document->loaded()) {
if (document->loaded()
|| QGuiApplication::keyboardModifiers() == Qt::ControlModifier) {
_fileChosen.fire_copy(document);
} else if (document->loading()) {
document->cancel();