mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +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
|
||||
{
|
||||
QMutexLocker lock( &m_mut );
|
||||
|
||||
if ( id == 0 )
|
||||
return SourceList::instance()->getLocal();
|
||||
else
|
||||
return m_sources.value( m_sources_id2name.value( id ) );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user