mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Add hack notice
This commit is contained in:
@@ -117,6 +117,7 @@ Source::friendlyName() const
|
||||
void
|
||||
Source::setAvatar( const QPixmap& avatar )
|
||||
{
|
||||
//HACK: we should really properly make sure that only the GUI thread ever accesses this function
|
||||
m_avatar = new QPixmap( avatar );
|
||||
}
|
||||
|
||||
@@ -124,6 +125,7 @@ Source::setAvatar( const QPixmap& avatar )
|
||||
QPixmap
|
||||
Source::avatar() const
|
||||
{
|
||||
//HACK: we should really properly make sure that only the GUI thread ever accesses this function
|
||||
if ( m_avatar )
|
||||
return QPixmap( *m_avatar );
|
||||
else
|
||||
|
Reference in New Issue
Block a user