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 || if ((*error)->domain != G_CONVERT_ERROR ||
_moo_encodings_equal (encoding, MOO_ENCODING_UTF8)) _moo_encodings_equal (encoding, MOO_ENCODING_UTF8))
{ {
g_clear_error (error); *retval = FALSE;
return FALSE;
}
if (!do_write (edit, filename, MOO_ENCODING_UTF8, error)) g_clear_error (error);
{
*retval = FALSE; if (!do_write (edit, filename, MOO_ENCODING_UTF8, error))
return FALSE; {
} *retval = FALSE;
return FALSE;
} }
*retval = FALSE; *retval = FALSE;