Corrected a brain dead logic error which led to data loss

master
Yevgen Muntyan 2008-08-25 05:11:20 -05:00
parent bc673ce1e5
commit c3c1b2e0f9
1 changed files with 9 additions and 6 deletions

View File

@ -759,13 +759,16 @@ do_save_local (MooEdit *edit,
if ((*error)->domain != G_CONVERT_ERROR ||
_moo_encodings_equal (encoding, MOO_ENCODING_UTF8))
{
g_clear_error (error);
*retval = FALSE;
return FALSE;
}
if (!do_write (edit, filename, MOO_ENCODING_UTF8, error))
{
*retval = FALSE;
return FALSE;
}
g_clear_error (error);
if (!do_write (edit, filename, MOO_ENCODING_UTF8, error))
{
*retval = FALSE;
return FALSE;
}
*retval = FALSE;