Skip to content

Commit 942ae66

Browse files
committed
fix: app crashed when window destroyed in quick
as title. pms: BUG-368399
1 parent 50e0707 commit 942ae66

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

xcb/dnotitlebarwindowhelper.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,12 @@ bool DNoTitlebarWindowHelper::windowEvent(QEvent *event)
514514
{
515515
QWindow *w = this->window();
516516

517+
// TODO Crashed when delete by Vtable.
518+
if (event->type() == QEvent::DeferredDelete) {
519+
VtableHook::resetVtable(w);
520+
return w->event(event);
521+
}
522+
517523
// get touch begin position
518524
static bool isTouchDown = false;
519525
static QPointF touchBeginPosition;

0 commit comments

Comments
 (0)