mirror of https://github.com/GNOME/gimp.git
plug-ins: return proper non-success status in file-pdf.
When not creating an image, we were always returning with status GIMP_PDB_EXECUTION_ERROR even though it might have been GIMP_PDB_CANCEL (which is not handled as an error, this is user choice, hence no dialog pops up).
This commit is contained in:
parent
08afb7d03b
commit
965e9ea8b5
|
@ -520,9 +520,7 @@ pdf_load (GimpProcedure *procedure,
|
|||
g_free (pages.pages);
|
||||
|
||||
if (! image)
|
||||
return gimp_procedure_new_return_values (procedure,
|
||||
GIMP_PDB_EXECUTION_ERROR,
|
||||
error);
|
||||
return gimp_procedure_new_return_values (procedure, status, error);
|
||||
|
||||
return_vals = gimp_procedure_new_return_values (procedure,
|
||||
GIMP_PDB_SUCCESS,
|
||||
|
|
Loading…
Reference in New Issue