From ab9b2674813f203463912f769b8f3b978d9bada9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Thu, 10 Jan 2008 17:26:49 +0000 Subject: [PATCH] Now the "cancel" button in the progress Dialog is working. Feel free to play with it... --- modules/gui/qt4/dialogs/interaction.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/gui/qt4/dialogs/interaction.cpp b/modules/gui/qt4/dialogs/interaction.cpp index 80f19ff438..1dc6bbf940 100644 --- a/modules/gui/qt4/dialogs/interaction.cpp +++ b/modules/gui/qt4/dialogs/interaction.cpp @@ -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 ); -- 2.39.2