Avoid dialog and other widgets with non-adjusted window flags.
Reviewed-by: Samuel Rødal
This commit is contained in:
parent
e277d14425
commit
ddae8b445b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user