]> git.sesse.net Git - vlc/commitdiff
Qt: Do not show a progressDialogBar for too short a time.
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 28 Apr 2010 11:30:54 +0000 (13:30 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 28 Apr 2010 11:35:28 +0000 (13:35 +0200)
(cherry picked from commit d16e5aea59a43b335e9414c38900ff57f1fcc562)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/dialogs/external.cpp

index 67c6f1c18b1d9ff9a9564d545c515c6d18de2f15..3798815f6d3428eef5e525e0906075785c324123 100644 (file)
@@ -191,7 +191,8 @@ QVLCProgressDialog::QVLCProgressDialog (DialogHandler *parent,
     if (data->title != NULL)
         setWindowTitle (qfu(data->title));
     setWindowRole ("vlc-progress");
-    setMinimumDuration (0);
+    setMinimumDuration (300);
+    setValue( 0 );
 
     connect (this, SIGNAL(progressed(int)), SLOT(setValue(int)));
     connect (this, SIGNAL(described(const QString&)),
@@ -244,7 +245,7 @@ void DialogHandler::startProgressBar (vlc_object_t *, void *value)
     dialog_progress_bar_t *data = (dialog_progress_bar_t *)value;
     QWidget *dlg = new QVLCProgressDialog (this, data);
 
-    dlg->show ();
+//    dlg->show ();
 }
 
 void DialogHandler::stopProgressBar (QWidget *dlg)