From 31a9a4a4500bd18db2968344111326f319d65366 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Mon, 10 Mar 2008 20:08:25 +0100 Subject: [PATCH] Fix a race condition : the user progress dialog wasn't created sometime with the Qt interface. --- modules/gui/qt4/dialogs_provider.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); -- 2.39.2