From cf45b0d3177ea7a42dc646bf9a308c13f7b3b614 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sat, 25 May 2019 17:15:37 +0300 Subject: [PATCH] Added ability to send not loaded GIFs with Ctrl key. --- Telegram/SourceFiles/chat_helpers/gifs_list_widget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/chat_helpers/gifs_list_widget.cpp b/Telegram/SourceFiles/chat_helpers/gifs_list_widget.cpp index 15c5865cf..5f772fc56 100644 --- a/Telegram/SourceFiles/chat_helpers/gifs_list_widget.cpp +++ b/Telegram/SourceFiles/chat_helpers/gifs_list_widget.cpp @@ -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();