Commit 7250a5c2 authored by Mitch Curtis's avatar Mitch Curtis Committed by Jani Heikkinen
Browse files

Fix button menus not opening on the second attempt


Assign a parent to the QQmlComponent returned by
QQuickControlSettings1::styleComponent() so that it doesn't
get garbage collected by the QML engine. This was not
an issue until 5.12, but it seems like a good idea regardless.

Change-Id: I53265b23afab62e2276fe6e10d976a93a4f12e6f
Fixes: QTBUG-71238
Reviewed-by: default avatarFrederik Gladhorn <frederik.gladhorn@qt.io>
Reviewed-by: default avatarShawn Rutledge <shawn.rutledge@qt.io>
Showing with 1 addition and 1 deletion
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment