Also initialize context data if the menu policy is CustomContextMenu.
It does contain valid data and some users seem to build upon the
standard context menu.
Also, return early with a nullptr from createStandardContextMenu when
the context menu data d ptr is null.
Task-number: QTBUG-53952
Change-Id: Ib30e85f10e3ae681527210a9e8554f5a21dba7ae
Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@qt.io>
Showing
Please register or sign in to comment