From: RĂ©mi Duraffort Date: Mon, 10 Mar 2008 19:08:25 +0000 (+0100) Subject: Fix a race condition : the user progress dialog wasn't created sometime with the... X-Git-Tag: 0.9.0-test0~2204 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=31a9a4a4500bd18db2968344111326f319d65366;p=vlc Fix a race condition : the user progress dialog wasn't created sometime with the Qt interface. --- diff --git a/modules/gui/qt4/dialogs_provider.cpp b/modules/gui/qt4/dialogs_provider.cpp index 068abb7d64..ceb0b629b5 100644 --- a/modules/gui/qt4/dialogs_provider.cpp +++ b/modules/gui/qt4/dialogs_provider.cpp @@ -501,6 +501,17 @@ void DialogsProvider::doInteraction( intf_dialog_args_t *p_arg ) qdialog = (InteractionDialog*)(p_dialog->p_private); if( qdialog ) qdialog->update(); + else + { + /* The INTERACT_NEW message was forgotten + so we must create the dialog and update it*/ + qdialog = new InteractionDialog( p_intf, p_dialog ); + p_dialog->p_private = (void*)qdialog; + if( !(p_dialog->i_status == ANSWERED_DIALOG) ) + qdialog->show(); + if( qdialog ) + qdialog->update(); + } break; case INTERACT_HIDE: qdialog = (InteractionDialog*)(p_dialog->p_private);