This commit is contained in:
Uwe Rathmann 2023-05-15 12:26:25 +02:00
parent b7fe24602c
commit defb193387
1 changed files with 4 additions and 0 deletions

View File

@ -481,6 +481,8 @@ QSGNode* QskMenuSkinlet::updateSampleNode( const QskSkinnable* skinnable,
if ( subControl == Q::Icon )
{
index = menu->actions()[ index ];
const auto graphic = menu->optionAt( index ).icon().graphic();
if ( graphic.isNull() )
return nullptr;
@ -494,6 +496,8 @@ QSGNode* QskMenuSkinlet::updateSampleNode( const QskSkinnable* skinnable,
if ( subControl == Q::Text )
{
index = menu->actions()[ index ];
const auto text = menu->optionAt( index ).text();
if ( text.isEmpty() )
return nullptr;