Commit 31a9a4a4 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix a race condition : the user progress dialog wasn't created sometime with the Qt interface.

parent 7ad41423
......@@ -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);
......
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