Don't try to set the Dialog's state when being destroyed
Because it crashes. Reviewed-by: Marco Martin
This commit is contained in:
parent
546dd32304
commit
f1af24c40e
@ -746,7 +746,9 @@ bool Dialog::event(QEvent *event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
const bool retval = QQuickWindow::event(event);
|
const bool retval = QQuickWindow::event(event);
|
||||||
|
if (event->type() != QEvent::DeferredDelete) {
|
||||||
KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager);
|
KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager);
|
||||||
|
}
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user