Corrected a brain dead logic error which led to data loss
parent
bc673ce1e5
commit
c3c1b2e0f9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue