Commit 1cae09b9 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>
(cherry picked from commit a34b1862b0aa77fa948a4720e9410fd038ebeb3c)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 20256d60
......@@ -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)
......
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