1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +02:00

fixed crash on love, when thumb buttons where not initialized

This commit is contained in:
Patrick von Reth
2013-01-11 15:51:59 +01:00
parent 08369c0476
commit 0e619addc4

View File

@@ -777,6 +777,8 @@ void
TomahawkWindow::updateWindowsLoveButton() TomahawkWindow::updateWindowsLoveButton()
{ {
#ifdef HAVE_THUMBBUTTON #ifdef HAVE_THUMBBUTTON
if ( m_taskbarList == 0 )
return;
if ( !AudioEngine::instance()->currentTrack().isNull() && AudioEngine::instance()->currentTrack()->toQuery()->loved() ) if ( !AudioEngine::instance()->currentTrack().isNull() && AudioEngine::instance()->currentTrack()->toQuery()->loved() )
{ {
m_thumbButtons[TP_LOVE].hIcon = thumbIcon(TomahawkUtils::Loved); m_thumbButtons[TP_LOVE].hIcon = thumbIcon(TomahawkUtils::Loved);