Commit 327a22aa authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: make progressbar dialogs modal

Most progressbars are modal tasks.
Interruptible progress dialogs should be modal then.
parent 30f6415a
...@@ -190,6 +190,8 @@ QVLCProgressDialog::QVLCProgressDialog (DialogHandler *parent, ...@@ -190,6 +190,8 @@ QVLCProgressDialog::QVLCProgressDialog (DialogHandler *parent,
{ {
setLabelText( qfu(data->message) ); setLabelText( qfu(data->message) );
setRange( 0, 0 ); setRange( 0, 0 );
if ( data->cancel )
setWindowModality ( Qt::ApplicationModal );
if( data->cancel ) if( data->cancel )
setCancelButton( new QPushButton( "&" + qfu(data->cancel) ) ); setCancelButton( new QPushButton( "&" + qfu(data->cancel) ) );
......
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