Commit 96fce709 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: accept close event on main interface (fix #4606)

If the event is ignored, the Qt4-X11 will reject the quit ICCM request.
This annoyingly caused VLC to inhibit logging out.
parent 8a36e6bc
...@@ -1246,9 +1246,10 @@ void MainInterface::wheelEvent( QWheelEvent *e ) ...@@ -1246,9 +1246,10 @@ void MainInterface::wheelEvent( QWheelEvent *e )
void MainInterface::closeEvent( QCloseEvent *e ) void MainInterface::closeEvent( QCloseEvent *e )
{ {
e->ignore(); /* Do not quit */
// hide(); // hide();
emit askToQuit(); /* ask THEDP to quit, so we have a unique method */ emit askToQuit(); /* ask THEDP to quit, so we have a unique method */
/* Accept session quit. Otherwise we break the desktop mamager. */
e->accept();
} }
void MainInterface::setInterfaceFullScreen( bool fs ) void MainInterface::setInterfaceFullScreen( bool fs )
......
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