]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/util/qvlcapp.hpp
Qt4: fix crash regression in 1.1.5 closeAllWindows() not thread-safe
[vlc] / modules / gui / qt4 / util / qvlcapp.hpp
index c9de99a144617d5ee5e2db55e78891d44f4d0314..66fa024898d9eff6c0b53ab71fa86f539fbd301b 100644 (file)
@@ -40,10 +40,17 @@ class QVLCApp : public QApplication
 {
     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()