Fix bugs.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3462 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas
2001-01-14 23:26:00 +00:00
parent db2de72cb1
commit 1b81a1986d
2 changed files with 7 additions and 7 deletions

View File

@@ -66,20 +66,21 @@ show_file_error (GNCFileIOError io_error, const char *newfile)
case ERR_FILEIO_NONE:
break;
case ERR_FILEIO_MISC:
buf = _("Something went wrong during file IO,\n"
"but I'm not sure what.");
if (!gnc_verify_dialog (buf, TRUE))
uh_oh = TRUE;
buf = _("There was an error during file IO.");
gnc_error_dialog (buf);
uh_oh = TRUE;
break;
case ERR_FILEIO_FILE_NOT_FOUND:
buf = g_strdup_printf (file_not_found_msg(), newfile);
gnc_error_dialog (buf);
g_free (buf);
uh_oh = TRUE;
break;
case ERR_FILEIO_FILE_EMPTY:
buf = _("The file \n %s\n is empty.");
buf = g_strdup_printf (buf, newfile);
gnc_error_dialog (buf);
g_free (buf);
uh_oh = TRUE;
break;
case ERR_FILEIO_FILE_TOO_NEW:
@@ -103,11 +104,10 @@ show_file_error (GNCFileIOError io_error, const char *newfile)
break;
default:
PERR("FIXME: Unhandled FileIO error in show_file_error.");
uh_oh = TRUE;
break;
}
g_free (buf);
return uh_oh;
}

View File

@@ -1163,7 +1163,7 @@ xaccGroupVisitUnvisitedTransactions (AccountGroup *g,
if (!visited_txns) return(FALSE);
list = xaccGroupGetSubAccounts (g);
if (!list) return(FALSE);
if (!list) return(TRUE);
for (node = list; node && keep_going; node = node->next)
{