All UI related operations in Qt4 must be done on the UI thread, as
QtGui is not thread-safe internally.
}
/* And quit */
- msg_Dbg( p_intf, "Please die, die, die..." );
- QApplication::closeAllWindows();
-
-// QApplication::quit();
-
+ msg_Dbg( p_this, "requesting exit..." );
QVLCApp::triggerQuit();
- msg_Dbg( p_intf, "Please die, die, die 2..." );
+ msg_Dbg( p_this, "waiting for UI thread..." );
#ifndef Q_WS_MAC
vlc_join (p_sys->thread, NULL);
#endif
{
Q_OBJECT
+private slots:
+ void doQuit()
+ {
+ closeAllWindows();
+ quit();
+ }
+
public:
QVLCApp( int & argc, char ** argv ) : QApplication( argc, argv, true )
{
- connect( this, SIGNAL(quitSignal()), this, SLOT(quit()) );
+ connect( this, SIGNAL(quitSignal()), this, SLOT(doQuit()) );
}
static void triggerQuit()