Qt: reparent the first-time dialog and make it die correctly.
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 11 Feb 2009 03:27:56 +0000 (04:27 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 11 Feb 2009 03:27:56 +0000 (04:27 +0100)
modules/gui/qt4/main_interface.cpp

index a35bb7d..eb5b7ed 100644 (file)
@@ -468,7 +468,7 @@ inline void MainInterface::askForPrivacy()
 
 int MainInterface::privacyDialog( QList<ConfigControl *> *controls )
 {
-    QDialog *privacy = new QDialog();
+    QDialog *privacy = new QDialog( this );
 
     privacy->setWindowTitle( qtr( "Privacy and Network Policies" ) );