1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-19 15:37:01 +01:00

implemented love

This commit is contained in:
Patrick von Reth 2012-07-06 13:48:13 +03:00
parent 56db97fea5
commit ef98ac41ce

View File

@ -564,7 +564,8 @@ bool
TomahawkWindow::winEvent ( MSG * msg, long * result )
{
#define TB_PRESSED Q_FUNC_INFO << "Taskbar Button Pressed:"
switch(msg->message){
switch(msg->message)
{
case WM_COMMAND:
if (HIWORD(msg->wParam) == THBN_CLICKED)
{
@ -588,7 +589,8 @@ TomahawkWindow::winEvent ( MSG * msg, long * result )
break;
case 5:
tLog()<<TB_PRESSED<<"Love";
// AudioEngine::instance()->
if(!AudioEngine::instance()->currentTrack().isNull())
AudioEngine::instance()->currentTrack()->toQuery()->setLoved( true );
break;
}
return true;