mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-23 09:19:41 +01:00
Add hack notice
This commit is contained in:
parent
0da5a958bb
commit
853c0a0170
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user