mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
* No need to access SourceList's singleton inside SourceList.
This commit is contained in:
@@ -55,12 +55,14 @@ SourceList::getLocal()
|
|||||||
return m_local;
|
return m_local;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
SourceList::setWebSource( const source_ptr& websrc )
|
SourceList::setWebSource( const source_ptr& websrc )
|
||||||
{
|
{
|
||||||
m_dummy = websrc;
|
m_dummy = websrc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const
|
const
|
||||||
source_ptr SourceList::webSource() const
|
source_ptr SourceList::webSource() const
|
||||||
{
|
{
|
||||||
@@ -169,7 +171,7 @@ SourceList::get( int id ) const
|
|||||||
QMutexLocker lock( &m_mut );
|
QMutexLocker lock( &m_mut );
|
||||||
|
|
||||||
if ( id == 0 )
|
if ( id == 0 )
|
||||||
return SourceList::instance()->getLocal();
|
return m_local;
|
||||||
else
|
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