2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

When following a post link push reply-return.

Fixes #4856.
This commit is contained in:
John Preston
2018-07-09 21:13:48 +03:00
parent eb3eef4b80
commit b697824540
25 changed files with 136 additions and 74 deletions

View File

@@ -281,17 +281,17 @@ void Result::forget() {
void Result::openFile() {
if (_document) {
DocumentOpenClickHandler(_document).onClick(Qt::LeftButton);
DocumentOpenClickHandler(_document).onClick({});
} else if (_photo) {
PhotoOpenClickHandler(_photo).onClick(Qt::LeftButton);
PhotoOpenClickHandler(_photo).onClick({});
}
}
void Result::cancelFile() {
if (_document) {
DocumentCancelClickHandler(_document).onClick(Qt::LeftButton);
DocumentCancelClickHandler(_document).onClick({});
} else if (_photo) {
PhotoCancelClickHandler(_photo).onClick(Qt::LeftButton);
PhotoCancelClickHandler(_photo).onClick({});
}
}