mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
* Don't emit selection requests if we didn't activate a ViewPage.
This commit is contained in:
@@ -549,7 +549,7 @@ SourcesModel::linkSourceItemToPage( SourceTreeItem* item, ViewPage* p )
|
||||
// TODO handle removal
|
||||
m_sourceTreeLinks[ p ] = item;
|
||||
|
||||
if( m_viewPageDelayedCacheItem == p )
|
||||
if ( p && m_viewPageDelayedCacheItem == p )
|
||||
emit selectRequest( QPersistentModelIndex( indexFromItem( item ) ) );
|
||||
|
||||
if ( QObject* obj = dynamic_cast< QObject* >( p ) )
|
||||
|
Reference in New Issue
Block a user