mirror of https://github.com/procxx/kepka.git
Fix sending of video-thumbed GIFs from panel.
This commit is contained in:
parent
f4ed2c26ba
commit
0834920db8
|
@ -379,15 +379,18 @@ void GifsListWidget::selectInlineResult(int row, int column) {
|
||||||
}
|
}
|
||||||
} else if (const auto document = item->getDocument()) {
|
} else if (const auto document = item->getDocument()) {
|
||||||
const auto media = document->activeMediaView();
|
const auto media = document->activeMediaView();
|
||||||
if ((media && media->loaded())
|
const auto preview = Data::VideoPreviewState(media.get());
|
||||||
|
if ((media && preview.loaded())
|
||||||
|| QGuiApplication::keyboardModifiers() == Qt::ControlModifier) {
|
|| QGuiApplication::keyboardModifiers() == Qt::ControlModifier) {
|
||||||
_fileChosen.fire_copy(document);
|
_fileChosen.fire_copy(document);
|
||||||
} else if (document->loading()) {
|
} else if (!preview.usingThumbnail()) {
|
||||||
document->cancel();
|
if (preview.loading()) {
|
||||||
} else {
|
document->cancel();
|
||||||
document->save(
|
} else {
|
||||||
document->stickerOrGifOrigin(),
|
document->save(
|
||||||
QString());
|
document->stickerOrGifOrigin(),
|
||||||
|
QString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (const auto inlineResult = item->getResult()) {
|
} else if (const auto inlineResult = item->getResult()) {
|
||||||
if (inlineResult->onChoose(item)) {
|
if (inlineResult->onChoose(item)) {
|
||||||
|
|
Loading…
Reference in New Issue