mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix bugs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3462 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user