Commit a5726386 authored by Michael Natterer's avatar Michael Natterer 😴

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

parent 0753b5a1
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment