From 0e619addc4c9b1a6d033648b1b0b10909a87edea Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Fri, 11 Jan 2013 15:51:59 +0100 Subject: [PATCH] fixed crash on love, when thumb buttons where not initialized --- src/TomahawkWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TomahawkWindow.cpp b/src/TomahawkWindow.cpp index ff5084467..275da763a 100644 --- a/src/TomahawkWindow.cpp +++ b/src/TomahawkWindow.cpp @@ -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);