Invoke click handler from a closed ConfirmBox.

Fixes #10597.
This commit is contained in:
John Preston 2021-04-08 19:02:18 +04:00
parent 1342077dcb
commit dc2192d5ca
1 changed files with 3 additions and 0 deletions

View File

@ -307,6 +307,9 @@ void ConfirmBox::mouseReleaseEvent(QMouseEvent *e) {
const auto guard = window();
Ui::hideLayer();
ActivateClickHandler(guard, activated, e->button());
// Keep the link alive, otherwise it is not activated.
crl::on_main([activated] {});
return;
}
BoxContent::mouseReleaseEvent(e);