Avoid dialog and other widgets with non-adjusted window flags.

Reviewed-by: Samuel Rødal
This commit is contained in:
Laszlo Agocs 2011-05-30 14:17:40 +02:00
parent e277d14425
commit ddae8b445b

View File

@ -233,6 +233,7 @@ void QWidgetPrivate::setParent_sys(QWidget *newparent, Qt::WindowFlags f)
q->destroy();
}
adjustFlags(f, q);
data.window_flags = f;
q->setAttribute(Qt::WA_WState_Created, false);
q->setAttribute(Qt::WA_WState_Visible, false);