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:
Jehan 2020-12-02 00:20:36 +01:00
parent 08afb7d03b
commit 965e9ea8b5
1 changed files with 1 additions and 3 deletions

View File

@ -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,