]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/main_interface.cpp
Win32: add support for play and pause buttons in media keys (different from a plya...
[vlc] / modules / gui / qt4 / main_interface.cpp
index 6f50b7dcef1c00d43a8c6c7a65a038c48145b1cd..862fbe2b1c9942d95d7ed94221801260a0479620 100644 (file)
@@ -587,7 +587,8 @@ void MainInterface::createTaskBarButtons()
             CONNECT( this, playPauseSignal(), THEMIM, togglePlayPause() );
             CONNECT( this, prevSignal(), THEMIM, prev() );
             CONNECT( this, nextSignal(), THEMIM, next() );
-            CONNECT( this, play(),  ActionsManager::getInstance( p_intf ), play() );
+            CONNECT( this, play(),  THEMIM, play() );
+            CONNECT( this, pause(),  THEMIM, pause() );
             CONNECT( this, mute(),  ActionsManager::getInstance( p_intf ), toggleMuteAudio() );
             CONNECT( this, volumeUp(),  ActionsManager::getInstance( p_intf ), AudioUp() );
             CONNECT( this, volumeDown(),  ActionsManager::getInstance( p_intf ), AudioDown() );
@@ -630,7 +631,6 @@ bool MainInterface::winEvent ( MSG * msg, long * result )
             break;
         case WM_APPCOMMAND:
             cmd = GET_APPCOMMAND_LPARAM(msg->lParam);
-            msg_Err( p_intf, "button pressed = %d", cmd);
             switch(cmd)
             {
                 case APPCOMMAND_MEDIA_PLAY_PAUSE: