]> git.sesse.net Git - vlc/commitdiff
Now the "cancel" button in the progress Dialog is working.
authorRémi Duraffort <ivoire@videolan.org>
Thu, 10 Jan 2008 17:26:49 +0000 (17:26 +0000)
committerRémi Duraffort <ivoire@videolan.org>
Thu, 10 Jan 2008 17:26:49 +0000 (17:26 +0000)
Feel free to play with it...

modules/gui/qt4/dialogs/interaction.cpp

index 80f19ff438c8abffec1ae00ef6cb1071e98dbc5a..1dc6bbf9400ca15ec304f6a07508683fc69f012e 100644 (file)
@@ -213,6 +213,12 @@ void InteractionDialog::Finish( int i_ret )
     }
     p_dialog->i_status = ANSWERED_DIALOG;
     p_dialog->i_return = i_ret;
+
+    /* Alert the Dialog_*_Progress that the user had clicked on "cancel" */
+    if( p_dialog->i_flags & DIALOG_USER_PROGRESS ||
+        p_dialog->i_flags & DIALOG_INTF_PROGRESS )
+        p_dialog->b_cancelled = true;
+
     hide();
     vlc_mutex_unlock( &p_dialog->p_interaction->object_lock );
     playlist_Signal( THEPL );