1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-08 10:02:29 +02:00

Don't allow yourself to follow...yourself.

This commit is contained in:
Jeff Mitchell 2011-06-17 12:47:39 -04:00
parent f9dff94ab2
commit b31ff998ee

View File

@ -360,7 +360,9 @@ SourceTreeView::onCustomContextMenu( const QPoint& pos )
}
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 ) );
}
}