]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/external.cpp
Qt: forgotten include
[vlc] / modules / gui / qt4 / dialogs / external.cpp
index 9e86da874f443ebf11d17d08b83f966064ebddd2..e78eaa048da908c4f9c40fcec09ade920d791eb0 100644 (file)
@@ -36,6 +36,7 @@
 #include <QProgressDialog>
 #include <QMutex>
 #include <QPushButton>
+#include <QTimer>
 
 DialogHandler::DialogHandler (intf_thread_t *intf, QObject *_parent)
     : QObject( _parent ), intf (intf),
@@ -194,6 +195,7 @@ QVLCProgressDialog::QVLCProgressDialog (DialogHandler *parent,
         setCancelButton( new QPushButton( "&" + qfu(data->cancel) ) );
     if (data->title != NULL)
         setWindowTitle (qfu(data->title));
+
     setWindowRole ("vlc-progress");
     setMinimumDuration (300);
     setValue( 0 );
@@ -247,6 +249,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);
 
+    QTimer::singleShot( 300, dlg, SLOT( show() ) );
 //    dlg->show ();
 }