Kaydet (Commit) b8ee3425 authored tarafından Caolán McNamara's avatar Caolán McNamara

gtk3: handle items without commands

e.g. the draw/impress context menus. Handle these like
MenuManager::Activate does

Change-Id: I02a0e377a2d3a57ac7ac9239aaa75dbb856489d2
üst a16159e5
......@@ -52,7 +52,9 @@ static gchar* GetCommandForItem( GtkSalMenuItem* pSalMenuItem, gchar* aCurrentCo
if ( !pMenu )
return nullptr;
OUString aMenuCommand = pMenu->GetItemCommand( nId );
OUString aMenuCommand = pMenu->GetItemCommand(nId);
if (aMenuCommand.isEmpty())
aMenuCommand = "slot:" + OUString::number(nId);
gchar* aCommandStr = g_strdup( OUStringToOString( aMenuCommand, RTL_TEXTENCODING_UTF8 ).getStr() );
aCommand = g_strdup( aCommandStr );
......
Markdown is supported
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