]> git.sesse.net Git - vlc/commitdiff
Qt: don't quit the application too early
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 7 Sep 2011 22:54:47 +0000 (00:54 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 7 Sep 2011 22:54:47 +0000 (00:54 +0200)
Close #4883

modules/gui/qt4/dialogs_provider.cpp

index b40d1cca60f3eac71f29b625f29a4ef0c89540ba..6905c4257a2d915e325a752eff211f177f8f5c33 100644 (file)
@@ -607,6 +607,7 @@ void DialogsProvider::streamingDialog( QWidget *parent,
     if( !b_transcode_only )
     {
         SoutDialog *s = new SoutDialog( parent, p_intf, mrl );
+        s->setAttribute( Qt::WA_QuitOnClose, false ); // See #4883
         if( s->exec() == QDialog::Accepted )
         {
             soutoption = s->getMrl();
@@ -619,6 +620,7 @@ void DialogsProvider::streamingDialog( QWidget *parent,
     } else {
     /* Convert */
         ConvertDialog *s = new ConvertDialog( parent, p_intf, mrl );
+        s->setAttribute( Qt::WA_QuitOnClose, false ); // See #4883
         if( s->exec() == QDialog::Accepted )
         {
             soutoption = s->getMrl();