1
0
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:
Jeff Mitchell 2011-05-12 09:46:42 -04:00
parent 0da5a958bb
commit 853c0a0170

View File

@ -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