mirror of https://github.com/GNOME/gimp.git
app: make sure to always show error messages returned by plug-ins
gimp_plug_in_handle_proc_return(): if there is no plug-in main loop running (the plugin was running asynchronously from a menu), show the plug-in's error message here, because nobody else will show it otherwise.
This commit is contained in:
parent
23aaf69779
commit
bdc2d4520b
|
@ -608,17 +608,27 @@ gimp_plug_in_handle_proc_return (GimpPlugIn *plug_in,
|
|||
|
||||
g_return_if_fail (proc_return != NULL);
|
||||
|
||||
proc_frame->return_vals =
|
||||
plug_in_params_to_args (proc_frame->procedure->values,
|
||||
proc_frame->procedure->num_values,
|
||||
proc_return->params,
|
||||
proc_return->nparams,
|
||||
TRUE, TRUE);
|
||||
|
||||
if (proc_frame->main_loop)
|
||||
{
|
||||
proc_frame->return_vals =
|
||||
plug_in_params_to_args (proc_frame->procedure->values,
|
||||
proc_frame->procedure->num_values,
|
||||
proc_return->params,
|
||||
proc_return->nparams,
|
||||
TRUE, TRUE);
|
||||
|
||||
g_main_loop_quit (proc_frame->main_loop);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* the plug-in is run asynchronously, so display its error
|
||||
* messages here because nobody else will do it
|
||||
*/
|
||||
gimp_plug_in_procedure_handle_return_values (GIMP_PLUG_IN_PROCEDURE (proc_frame->procedure),
|
||||
plug_in->manager->gimp,
|
||||
proc_frame->progress,
|
||||
proc_frame->return_vals);
|
||||
}
|
||||
|
||||
gimp_plug_in_close (plug_in, FALSE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue