mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Don't allow yourself to follow...yourself.
This commit is contained in:
@@ -360,7 +360,9 @@ SourceTreeView::onCustomContextMenu( const QPoint& pos )
|
|||||||
}
|
}
|
||||||
else if ( model()->data( m_contextMenuIndex, SourcesModel::SourceTreeItemTypeRole ) == SourcesModel::Collection )
|
else if ( model()->data( m_contextMenuIndex, SourcesModel::SourceTreeItemTypeRole ) == SourcesModel::Collection )
|
||||||
{
|
{
|
||||||
m_followMenu.exec( mapToGlobal( pos ) );
|
CollectionItem* item = itemFromIndex< CollectionItem >( m_contextMenuIndex );
|
||||||
|
if ( !item->source()->isLocal() )
|
||||||
|
m_followMenu.exec( mapToGlobal( pos ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user