Commit 21a5ca24 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Qt4 - Forgotten file in a previous commit ( for the toggleVisible bug in QSystray )

parent bae04ee8
...@@ -320,8 +320,8 @@ void MainInterface::updateSystrayMenu( int status ) ...@@ -320,8 +320,8 @@ void MainInterface::updateSystrayMenu( int status )
void MainInterface::toggleUpdateSystrayMenu() void MainInterface::toggleUpdateSystrayMenu()
{ {
QVLCMenu::updateSystrayMenu( this, p_intf );
toggleVisible(); toggleVisible();
QVLCMenu::updateSystrayMenu( this, p_intf );
} }
void MainInterface::handleSystrayClick( QSystemTrayIcon::ActivationReason reason ) void MainInterface::handleSystrayClick( QSystemTrayIcon::ActivationReason reason )
...@@ -329,7 +329,8 @@ void MainInterface::handleSystrayClick( QSystemTrayIcon::ActivationReason reason ...@@ -329,7 +329,8 @@ void MainInterface::handleSystrayClick( QSystemTrayIcon::ActivationReason reason
switch( reason ) switch( reason )
{ {
case QSystemTrayIcon::Trigger: case QSystemTrayIcon::Trigger:
this->toggleVisible(); break; toggleUpdateSystrayMenu();
break;
case QSystemTrayIcon::MiddleClick: case QSystemTrayIcon::MiddleClick:
sysTray->showMessage( qtr( "VLC media player" ), sysTray->showMessage( qtr( "VLC media player" ),
qtr( "Control menu for the player" ), qtr( "Control menu for the player" ),
......
Supports Markdown
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