1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-22 16:59:58 +01:00

* Fixed SourceList's get( id ) for id being 0.

This commit is contained in:
Christian Muehlhaeuser 2011-09-10 09:34:17 +02:00
parent 46ffedf530
commit e789066b9b

View File

@ -167,7 +167,11 @@ source_ptr
SourceList::get( int id ) const
{
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 ) );
}