[vlc-commits] qt: also update text with indeterminate progress

Thomas Guillem git at videolan.org
Fri Sep 15 17:34:08 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Sep 15 17:33:52 2017 +0200| [0be0be63c3d03f5a19c295408b3db93189de3efc] | committer: Thomas Guillem

qt: also update text with indeterminate progress

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0be0be63c3d03f5a19c295408b3db93189de3efc
---

 modules/gui/qt/dialogs/external.cpp | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt/dialogs/external.cpp b/modules/gui/qt/dialogs/external.cpp
index b85de56a8f..665a92f768 100644
--- a/modules/gui/qt/dialogs/external.cpp
+++ b/modules/gui/qt/dialogs/external.cpp
@@ -400,10 +400,8 @@ ProgressDialogWrapper::ProgressDialogWrapper(DialogHandler *p_handler,
 
 void ProgressDialogWrapper::updateProgress(float f_position, const QString &text)
 {
+    QProgressDialog *progress = static_cast<QProgressDialog *>(p_dialog);
+    progress->setLabelText(text);
     if (!b_indeterminate)
-    {
-        QProgressDialog *progress = static_cast<QProgressDialog *>(p_dialog);
-        progress->setLabelText(text);
         progress->setValue(f_position * 1000);
-    }
 }



More information about the vlc-commits mailing list