app: don't propagate NULL error when saving XCFs

xcf_save_foo() can fail without setting the error object, in which
case trying to propagate it emits a CRITICAL.
This commit is contained in:
Ell 2017-07-10 10:34:41 -04:00
parent 6b84293078
commit 8121769dc9
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ xcf_save_stream (Gimp *gimp,
success = g_output_stream_close (info.output, NULL, &my_error); success = g_output_stream_close (info.output, NULL, &my_error);
} }
if (! success) if (! success && my_error)
g_propagate_prefixed_error (error, my_error, g_propagate_prefixed_error (error, my_error,
_("Error writing '%s': "), filename); _("Error writing '%s': "), filename);