mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-22 08:49:42 +01:00
* No need to access SourceList's singleton inside SourceList.
This commit is contained in:
parent
e789066b9b
commit
202c4b821e
@ -55,12 +55,14 @@ SourceList::getLocal()
|
||||
return m_local;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
SourceList::setWebSource( const source_ptr& websrc )
|
||||
{
|
||||
m_dummy = websrc;
|
||||
}
|
||||
|
||||
|
||||
const
|
||||
source_ptr SourceList::webSource() const
|
||||
{
|
||||
@ -169,7 +171,7 @@ SourceList::get( int id ) const
|
||||
QMutexLocker lock( &m_mut );
|
||||
|
||||
if ( id == 0 )
|
||||
return SourceList::instance()->getLocal();
|
||||
return m_local;
|
||||
else
|
||||
return m_sources.value( m_sources_id2name.value( id ) );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user