mirror of https://github.com/GNOME/gimp.git
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:
parent
6b84293078
commit
8121769dc9
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue