mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
Make compile on Mac.
This commit is contained in:
@@ -865,7 +865,11 @@ TomahawkWindow::pluginMenuAdded( QMenu* menu )
|
|||||||
button->setText( menu->title() );
|
button->setText( menu->title() );
|
||||||
button->setMenu( menu );
|
button->setMenu( menu );
|
||||||
button->setToolButtonStyle( Qt::ToolButtonIconOnly );
|
button->setToolButtonStyle( Qt::ToolButtonIconOnly );
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
QAction *action = m_toolbar->addWidget( button );
|
||||||
|
#else
|
||||||
QAction *action = m_toolbar->insertWidget( m_compactMenuAction, button );
|
QAction *action = m_toolbar->insertWidget( m_compactMenuAction, button );
|
||||||
|
#endif
|
||||||
action->setProperty( "id", plugin->account()->accountId() );
|
action->setProperty( "id", plugin->account()->accountId() );
|
||||||
balanceToolbar();
|
balanceToolbar();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user