app: fix copy/paste GError bug in some calls to g_file_replace()

This commit is contained in:
Michael Natterer 2014-07-03 13:01:01 +02:00
parent 0753b5a137
commit a572638656
5 changed files with 6 additions and 6 deletions

View File

@ -49,7 +49,7 @@ gimp_brush_generated_save (GimpData *data,
output = G_OUTPUT_STREAM (g_file_replace (gimp_data_get_file (data),
NULL, FALSE, G_FILE_CREATE_NONE,
NULL, error));
NULL, &my_error));
if (! output)
{
g_set_error (error, GIMP_DATA_ERROR, GIMP_DATA_ERROR_OPEN,

View File

@ -44,7 +44,7 @@ gimp_gradient_save (GimpData *data,
output = G_OUTPUT_STREAM (g_file_replace (gimp_data_get_file (data),
NULL, FALSE, G_FILE_CREATE_NONE,
NULL, error));
NULL, &my_error));
if (! output)
{
g_set_error (error, GIMP_DATA_ERROR, GIMP_DATA_ERROR_OPEN,
@ -160,7 +160,7 @@ gimp_gradient_save_pov (GimpGradient *gradient,
output = G_OUTPUT_STREAM (g_file_replace (file,
NULL, FALSE, G_FILE_CREATE_NONE,
NULL, error));
NULL, &my_error));
if (! output)
{
g_set_error (error, GIMP_DATA_ERROR, GIMP_DATA_ERROR_OPEN,

View File

@ -45,7 +45,7 @@ gimp_palette_save (GimpData *data,
output = G_OUTPUT_STREAM (g_file_replace (gimp_data_get_file (data),
NULL, FALSE, G_FILE_CREATE_NONE,
NULL, error));
NULL, &my_error));
if (! output)
{
g_set_error (error, GIMP_DATA_ERROR, GIMP_DATA_ERROR_OPEN,

View File

@ -587,7 +587,7 @@ gimp_curves_config_save_cruft (GimpCurvesConfig *config,
output = G_OUTPUT_STREAM (g_file_replace (file,
NULL, FALSE, G_FILE_CREATE_NONE,
NULL, error));
NULL, &my_error));
if (! output)
{
g_set_error (error, GIMP_DATA_ERROR, GIMP_DATA_ERROR_OPEN,

View File

@ -830,7 +830,7 @@ gimp_levels_config_save_cruft (GimpLevelsConfig *config,
output = G_OUTPUT_STREAM (g_file_replace (file,
NULL, FALSE, G_FILE_CREATE_NONE,
NULL, error));
NULL, &my_error));
if (! output)
{
g_set_error (error, GIMP_DATA_ERROR, GIMP_DATA_ERROR_OPEN,