mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
* Fixed SourceList's get( id ) for id being 0.
This commit is contained in:
@@ -167,7 +167,11 @@ source_ptr
|
|||||||
SourceList::get( int id ) const
|
SourceList::get( int id ) const
|
||||||
{
|
{
|
||||||
QMutexLocker lock( &m_mut );
|
QMutexLocker lock( &m_mut );
|
||||||
return m_sources.value( m_sources_id2name.value( id ) );
|
|
||||||
|
if ( id == 0 )
|
||||||
|
return SourceList::instance()->getLocal();
|
||||||
|
else
|
||||||
|
return m_sources.value( m_sources_id2name.value( id ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user