From 808d1d38213c720564252fdfd25aad51d8ec6803 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Mon, 6 Aug 2007 17:59:57 +0000 Subject: [PATCH] Qt4 - systray behaviour: first activate the Windows before hiding it. Closes #1249 --- modules/gui/qt4/main_interface.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp index 2de523d870..d65962bc77 100644 --- a/modules/gui/qt4/main_interface.cpp +++ b/modules/gui/qt4/main_interface.cpp @@ -460,7 +460,21 @@ void MainInterface::updateSystrayMenu( int status ) */ void MainInterface::toggleUpdateSystrayMenu() { - toggleVisible(); + if( isHidden() ) + { + show(); + } + else + { + if( isActiveWindow() ) + { + hide(); + } + else + { + activateWindow(); + } + } QVLCMenu::updateSystrayMenu( this, p_intf ); } -- GitLab