mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-23 17:29:42 +01:00
Merge pull request #150 from TheOneRing/fix_love
fixed crash on love, when thumb buttons where not initialized
This commit is contained in:
commit
228f41c76d
@ -777,6 +777,8 @@ void
|
||||
TomahawkWindow::updateWindowsLoveButton()
|
||||
{
|
||||
#ifdef HAVE_THUMBBUTTON
|
||||
if ( m_taskbarList == 0 )
|
||||
return;
|
||||
if ( !AudioEngine::instance()->currentTrack().isNull() && AudioEngine::instance()->currentTrack()->toQuery()->loved() )
|
||||
{
|
||||
m_thumbButtons[TP_LOVE].hIcon = thumbIcon(TomahawkUtils::Loved);
|
||||
|
Loading…
x
Reference in New Issue
Block a user