2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-04 00:25:17 +00:00

Add Ui::PostponeCall() on return to event loop.

This commit is contained in:
John Preston
2018-12-12 12:59:51 +04:00
parent a167a8587b
commit 89cf733d24
5 changed files with 95 additions and 2 deletions

View File

@@ -375,7 +375,7 @@ void LayerStackWidget::keyPressEvent(QKeyEvent *e) {
}
void LayerStackWidget::mousePressEvent(QMouseEvent *e) {
crl::on_main(this, [=] { backgroundClicked(); });
Ui::PostponeCall(this, [=] { backgroundClicked(); });
}
void LayerStackWidget::backgroundClicked() {