mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
Guard against null source
This commit is contained in:
parent
d49294d288
commit
7832dd42b2
@ -400,7 +400,7 @@ SourceDelegate::editorEvent ( QEvent* event, QAbstractItemModel* model, const QS
|
||||
{
|
||||
CollectionItem* colItem = qobject_cast< CollectionItem* >( index.data( SourcesModel::SourceTreeItemRole ).value< SourceTreeItem* >() );
|
||||
Q_ASSERT( colItem );
|
||||
if ( !colItem->source()->currentTrack().isNull() )
|
||||
if ( !colItem->source().isNull() && !colItem->source()->currentTrack().isNull() )
|
||||
{
|
||||
QMouseEvent* ev = static_cast< QMouseEvent* >( event );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user