mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-26 02:32:35 +01:00
* Don't emit selection requests if we didn't activate a ViewPage.
This commit is contained in:
parent
684f33a99f
commit
bea23d7dbe
@ -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 ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user