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

* Fixed crashing after a right-click on the Super Collection.

This commit is contained in:
Christian Muehlhaeuser
2011-07-04 02:42:42 +02:00
parent 15cdc8f910
commit 5e9fa24008

View File

@@ -414,7 +414,7 @@ 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 )
{ {
CollectionItem* item = itemFromIndex< CollectionItem >( m_contextMenuIndex ); CollectionItem* item = itemFromIndex< CollectionItem >( m_contextMenuIndex );
if ( !item->source()->isLocal() ) if ( !item->source().isNull() && !item->source()->isLocal() )
m_latchMenu.exec( mapToGlobal( pos ) ); m_latchMenu.exec( mapToGlobal( pos ) );
} }
} }