mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
* Fixed crashing after a right-click on the Super Collection.
This commit is contained in:
@@ -414,7 +414,7 @@ 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() )
|
||||
if ( !item->source().isNull() && !item->source()->isLocal() )
|
||||
m_latchMenu.exec( mapToGlobal( pos ) );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user