mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 23:57:34 +02:00
* Moved properties context entry below the separator.
This commit is contained in:
@@ -111,20 +111,21 @@ ContextMenu::setQueries( const QList<Tomahawk::query_ptr>& queries )
|
|||||||
if ( m_supportedActions & ActionPage && itemCount() == 1 )
|
if ( m_supportedActions & ActionPage && itemCount() == 1 )
|
||||||
m_sigmap->setMapping( addAction( tr( "&Show Track Page" ) ), ActionPage );
|
m_sigmap->setMapping( addAction( tr( "&Show Track Page" ) ), ActionPage );
|
||||||
|
|
||||||
if ( m_supportedActions & ActionEditMetadata && itemCount() == 1 ) {
|
addSeparator();
|
||||||
|
|
||||||
|
if ( m_supportedActions & ActionEditMetadata && itemCount() == 1 )
|
||||||
|
{
|
||||||
if ( m_queries.first()->results().isEmpty() )
|
if ( m_queries.first()->results().isEmpty() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Tomahawk::result_ptr result = m_queries.first()->results().first();
|
Tomahawk::result_ptr result = m_queries.first()->results().first();
|
||||||
if ( result->collection() && result->collection()->source() &&
|
if ( result->collection() && result->collection()->source() &&
|
||||||
result->collection()->source()->isLocal() ) {
|
result->collection()->source()->isLocal() )
|
||||||
m_sigmap->setMapping( addAction( tr( "Properties") ), ActionEditMetadata );
|
{
|
||||||
|
m_sigmap->setMapping( addAction( tr( "Properties..." ) ), ActionEditMetadata );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
addSeparator();
|
|
||||||
|
|
||||||
if ( m_supportedActions & ActionDelete )
|
if ( m_supportedActions & ActionDelete )
|
||||||
m_sigmap->setMapping( addAction( queries.count() > 1 ? tr( "&Delete Items" ) : tr( "&Delete Item" ) ), ActionDelete );
|
m_sigmap->setMapping( addAction( queries.count() > 1 ? tr( "&Delete Items" ) : tr( "&Delete Item" ) ), ActionDelete );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user