Commit f765c772 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fix a potential crash with the systray management

parent eff056b1
......@@ -1044,9 +1044,11 @@ void MainInterface::toggleUpdateSystrayMenu()
hide();
#endif
}
if( sysTray )
QVLCMenu::updateSystrayMenu( this, p_intf );
}
/* First Item of the systray menu */
void MainInterface::showUpdateSystrayMenu()
{
if( isHidden() )
......@@ -1058,12 +1060,14 @@ void MainInterface::showUpdateSystrayMenu()
QVLCMenu::updateSystrayMenu( this, p_intf );
}
/* First Item of the systray menu */
void MainInterface::hideUpdateSystrayMenu()
{
hide();
QVLCMenu::updateSystrayMenu( this, p_intf );
}
/* Click on systray Icon */
void MainInterface::handleSystrayClick(
QSystemTrayIcon::ActivationReason reason )
{
......
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