diff options
-rw-r--r-- | src/gui/kernel/qwidget_mac.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm index 7e9ebb9..16ec3d8 100644 --- a/src/gui/kernel/qwidget_mac.mm +++ b/src/gui/kernel/qwidget_mac.mm @@ -3092,7 +3092,7 @@ void QWidgetPrivate::setParent_sys(QWidget *parent, Qt::WindowFlags f) // Maintain the glWidgets list on parent change: add "our" gl widgets // to the list on the new parent and grandparents. - if (glWidgets.isEmpty() == false) { + if (glWidgets.isEmpty() == false && !q->isWindow()) { QWidget *current = q->parentWidget(); while (current) { current->d_func()->glWidgets += glWidgets; |