Commit a34b1862 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: Do not show a progressDialogBar for too short a time.

(cherry picked from commit d16e5aea59a43b335e9414c38900ff57f1fcc562)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 391fdb62
...@@ -191,7 +191,8 @@ QVLCProgressDialog::QVLCProgressDialog (DialogHandler *parent, ...@@ -191,7 +191,8 @@ QVLCProgressDialog::QVLCProgressDialog (DialogHandler *parent,
if (data->title != NULL) if (data->title != NULL)
setWindowTitle (qfu(data->title)); setWindowTitle (qfu(data->title));
setWindowRole ("vlc-progress"); setWindowRole ("vlc-progress");
setMinimumDuration (0); setMinimumDuration (300);
setValue( 0 );
connect (this, SIGNAL(progressed(int)), SLOT(setValue(int))); connect (this, SIGNAL(progressed(int)), SLOT(setValue(int)));
connect (this, SIGNAL(described(const QString&)), connect (this, SIGNAL(described(const QString&)),
...@@ -244,7 +245,7 @@ void DialogHandler::startProgressBar (vlc_object_t *, void *value) ...@@ -244,7 +245,7 @@ void DialogHandler::startProgressBar (vlc_object_t *, void *value)
dialog_progress_bar_t *data = (dialog_progress_bar_t *)value; dialog_progress_bar_t *data = (dialog_progress_bar_t *)value;
QWidget *dlg = new QVLCProgressDialog (this, data); QWidget *dlg = new QVLCProgressDialog (this, data);
dlg->show (); // dlg->show ();
} }
void DialogHandler::stopProgressBar (QWidget *dlg) void DialogHandler::stopProgressBar (QWidget *dlg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment