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