Commit 808d1d38 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - systray behaviour: first activate the Windows before hiding it.

Closes #1249
parent 12e628a7
......@@ -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 );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment