Don't try to set the Dialog's state when being destroyed

Because it crashes.

Reviewed-by: Marco Martin
This commit is contained in:
Martin Klapetek 2014-03-19 16:09:22 +01:00
parent 546dd32304
commit f1af24c40e

View File

@ -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;
} }