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