Skip to content

Commit

Permalink
fix: app crashed when window destroyed in quick
Browse files Browse the repository at this point in the history
as title.

pms: BUG-368399
  • Loading branch information
18202781743 committed Nov 29, 2024
1 parent 50e0707 commit 2a60557
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xcb/dnotitlebarwindowhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,12 @@ bool DNoTitlebarWindowHelper::windowEvent(QEvent *event)
{
QWindow *w = this->window();

// TODO Crashed when delete by Vtable.
if (event->type() == QEvent::DeferredDelete) {
VtableHook::resetVtable(w);
return w->event(event);
}

// get touch begin position
static bool isTouchDown = false;
static QPointF touchBeginPosition;
Expand Down

0 comments on commit 2a60557

Please sign in to comment.