mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
Consolidate icon code, duplication--
This commit is contained in:
@@ -275,17 +275,9 @@ AtticaResolverAccount::loadIcon()
|
|||||||
if ( m_resolver.isNull() )
|
if ( m_resolver.isNull() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const QFileInfo fi( m_resolver.data()->filePath() );
|
|
||||||
QDir codeDir = fi.absoluteDir();
|
|
||||||
codeDir.cd( "../images" );
|
|
||||||
|
|
||||||
if ( codeDir.exists() && codeDir.exists( "icon.png" ) )
|
m_icon = AtticaManager::instance()->iconForResolver( AtticaManager::instance()->resolverForId( m_atticaId ) );
|
||||||
{
|
m_resolver.data()->setIcon( m_icon );
|
||||||
m_icon.load( codeDir.absoluteFilePath( "icon.png" ) );
|
|
||||||
|
|
||||||
if ( !m_resolver.isNull() )
|
|
||||||
m_resolver.data()->setIcon( m_icon );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user