mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +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
|
// TODO handle removal
|
||||||
m_sourceTreeLinks[ p ] = item;
|
m_sourceTreeLinks[ p ] = item;
|
||||||
|
|
||||||
if( m_viewPageDelayedCacheItem == p )
|
if ( p && m_viewPageDelayedCacheItem == p )
|
||||||
emit selectRequest( QPersistentModelIndex( indexFromItem( item ) ) );
|
emit selectRequest( QPersistentModelIndex( indexFromItem( item ) ) );
|
||||||
|
|
||||||
if ( QObject* obj = dynamic_cast< QObject* >( p ) )
|
if ( QObject* obj = dynamic_cast< QObject* >( p ) )
|
||||||
|
Reference in New Issue
Block a user