From 9e6512fc252881586b90b8492801dc649a7be931 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Tue, 9 Sep 2014 00:16:20 +0200 Subject: [PATCH] * Show play icon in context menus. --- src/libtomahawk/ContextMenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/ContextMenu.cpp b/src/libtomahawk/ContextMenu.cpp index f474ccf6f..52057d5d1 100644 --- a/src/libtomahawk/ContextMenu.cpp +++ b/src/libtomahawk/ContextMenu.cpp @@ -120,7 +120,7 @@ ContextMenu::setQueries( const QList& queries ) m_queries << queries; if ( m_supportedActions & ActionPlay && itemCount() == 1 ) - m_sigmap->setMapping( addAction( tr( "&Play" ) ), ActionPlay ); + m_sigmap->setMapping( addAction( ImageRegistry::instance()->icon( RESPATH "images/play.svg" ), tr( "&Play" ) ), ActionPlay ); if ( m_supportedActions & ActionQueue ) m_sigmap->setMapping( addAction( tr( "Add to &Queue" ) ), ActionQueue ); @@ -140,7 +140,7 @@ ContextMenu::setQueries( const QList& queries ) for ( int i = 0; i < m_playlists.length(); ++i ) { QAction* action = new QAction( m_playlists.at( i )->title() , this ); - playlistMenu->addAction(action); + playlistMenu->addAction( action ); m_playlists_sigmap->setMapping( action, i ); connect( action, SIGNAL( triggered() ), m_playlists_sigmap, SLOT( map() ) ); }