[vlc-commits] Qt: make progressbar dialogs modal

Francois Cartegnie git at videolan.org
Sat Mar 5 20:35:45 CET 2011


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Mar  5 20:33:45 2011 +0100| [327a22aa88cbacaf8289b0a67f1623c9eaef7bba] | committer: Francois Cartegnie

Qt: make progressbar dialogs modal

Most progressbars are modal tasks.
Interruptible progress dialogs should be modal then.

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

 modules/gui/qt4/dialogs/external.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/dialogs/external.cpp b/modules/gui/qt4/dialogs/external.cpp
index e78eaa0..8c7a193 100644
--- a/modules/gui/qt4/dialogs/external.cpp
+++ b/modules/gui/qt4/dialogs/external.cpp
@@ -190,6 +190,8 @@ QVLCProgressDialog::QVLCProgressDialog (DialogHandler *parent,
 {
     setLabelText( qfu(data->message) );
     setRange( 0, 0 );
+    if ( data->cancel )
+        setWindowModality ( Qt::ApplicationModal );
 
     if( data->cancel )
         setCancelButton( new QPushButton( "&" + qfu(data->cancel) ) );



More information about the vlc-commits mailing list