mirror of https://github.com/procxx/kepka.git
Fix sending of saved GIFs.
This commit is contained in:
parent
a886c598c1
commit
b0ff443eac
|
@ -363,11 +363,9 @@ void GifsListWidget::selectInlineResult(int row, int column) {
|
||||||
} else if (document->loading()) {
|
} else if (document->loading()) {
|
||||||
document->cancel();
|
document->cancel();
|
||||||
} else {
|
} else {
|
||||||
DocumentOpenClickHandler::Open(
|
document->save(
|
||||||
document->stickerOrGifOrigin(),
|
document->stickerOrGifOrigin(),
|
||||||
document,
|
QString());
|
||||||
nullptr,
|
|
||||||
ActionOnLoadNone);
|
|
||||||
}
|
}
|
||||||
} else if (const auto inlineResult = item->getResult()) {
|
} else if (const auto inlineResult = item->getResult()) {
|
||||||
if (inlineResult->onChoose(item)) {
|
if (inlineResult->onChoose(item)) {
|
||||||
|
|
|
@ -850,7 +850,7 @@ void DocumentData::save(
|
||||||
setLocation(FileLocation(toFile));
|
setLocation(FileLocation(toFile));
|
||||||
Local::writeFileLocation(mediaKey(), FileLocation(toFile));
|
Local::writeFileLocation(mediaKey(), FileLocation(toFile));
|
||||||
} else if (l.accessEnable()) {
|
} else if (l.accessEnable()) {
|
||||||
auto alreadyName = l.name();
|
const auto &alreadyName = l.name();
|
||||||
if (alreadyName != toFile) {
|
if (alreadyName != toFile) {
|
||||||
QFile(toFile).remove();
|
QFile(toFile).remove();
|
||||||
QFile(alreadyName).copy(toFile);
|
QFile(alreadyName).copy(toFile);
|
||||||
|
|
|
@ -265,11 +265,9 @@ bool Result::onChoose(Layout::ItemBase *layout) {
|
||||||
} else if (_document->loading()) {
|
} else if (_document->loading()) {
|
||||||
_document->cancel();
|
_document->cancel();
|
||||||
} else {
|
} else {
|
||||||
DocumentOpenClickHandler::Open(
|
_document->save(
|
||||||
Data::FileOriginSavedGifs(),
|
Data::FileOriginSavedGifs(),
|
||||||
_document,
|
QString());
|
||||||
nullptr,
|
|
||||||
ActionOnLoadNone);
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue