From db2737d9a00c3eefcf0f319a32cf13efb286570b Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Sat, 4 Oct 2014 18:41:19 +0100 Subject: [PATCH] Bugfix: change play/pause icon when changing window --- source/app/plaYUVerApp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/app/plaYUVerApp.cpp b/source/app/plaYUVerApp.cpp index 3dee403..914c37d 100644 --- a/source/app/plaYUVerApp.cpp +++ b/source/app/plaYUVerApp.cpp @@ -862,6 +862,10 @@ Void plaYUVerApp::chageSubWindowSelection() updateStreamProperties(); updateFrameProperties(); updateZoomFactorSBox(); + if( m_pcCurrentSubWindow->isPlaying() ) + m_arrayActions[PLAY_ACT]->setIcon( style()->standardIcon( QStyle::SP_MediaPause ) ); + else + m_arrayActions[PLAY_ACT]->setIcon( style()->standardIcon( QStyle::SP_MediaPlay ) ); } m_pcCurrentSubWindow = new_window; }