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:
parent
46ffedf530
commit
e789066b9b
@ -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 ) );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user