mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
Close the MsgBox when clicking the OK button.
This feels vaguely crashy. I haven't tested window/widget destruction before so there's sure to be bugs.
This commit is contained in:
parent
3ebea05996
commit
959a1b0750
Notes:
sideshowbarker
2024-07-19 18:48:35 +09:00
Author: https://github.com/awesomekling
Commit: 959a1b0750
9 changed files with 65 additions and 9 deletions
|
@ -36,6 +36,8 @@ void Widget::event(Event& event)
|
|||
if (auto* win = window()) {
|
||||
if (win->isBeingDragged())
|
||||
return;
|
||||
if (!win->isVisible())
|
||||
return;
|
||||
}
|
||||
m_hasPendingPaintEvent = false;
|
||||
return paintEvent(static_cast<PaintEvent&>(event));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue