Commit 3326e7ef authored by Erwan Tulou's avatar Erwan Tulou

qt4: fix skins2 crash after exiting the preferences dialog

This fixes a regression brought by 7f485998

On skins2(tested on Linux), open and close the preferences dialog leads to a
crash, because the whole qt4 thread terminates unexpectedly.

This is due to setQuitOnLastWindowClosed set to true. As a dialog provider,
qt4 doesn't run any windows, and therefore just closing the preferences
 dialog box (via accept() or reject()) signals the qt4 thread to quit.
parent 501530e6
...@@ -525,7 +525,10 @@ static void *Thread( void *obj ) ...@@ -525,7 +525,10 @@ static void *Thread( void *obj )
#endif #endif
/* Last settings */ /* Last settings */
app.setQuitOnLastWindowClosed( true ); if( p_intf->p_sys->b_isDialogProvider )
app.setQuitOnLastWindowClosed( false );
else
app.setQuitOnLastWindowClosed( true );
/* Retrieve last known path used in file browsing */ /* Retrieve last known path used in file browsing */
p_intf->p_sys->filepath = p_intf->p_sys->filepath =
......
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