Invert "allow_file_incompatabiilty" tests: we now generate files that 2.0 might not read exactly.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16044 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Joshua Sled 2007-05-05 17:03:42 +00:00
parent b7d601be25
commit 8db1c801a5
3 changed files with 3 additions and 33 deletions

View File

@ -101,17 +101,7 @@ xmlNodePtr
gnc_book_dom_tree_create(QofBook *book)
{
xmlNodePtr ret;
gboolean allow_incompat;
GError *err = NULL;
allow_incompat = gnc_gconf_get_bool("dev", "allow_file_incompatibility", &err);
if (err != NULL)
{
g_warning("error getting gconf value [%s]", err->message);
g_error_free(err);
allow_incompat = FALSE;
}
g_debug("allow_incompatibility: [%s]", allow_incompat ? "true" : "false");
gboolean allow_incompat = TRUE;
ret = xmlNewNode(NULL, BAD_CAST gnc_book_string);
xmlSetProp(ret, BAD_CAST "version", BAD_CAST gnc_v2_book_version_string);

View File

@ -155,17 +155,7 @@ gnc_schedXaction_dom_tree_create(SchedXaction *sx)
GDate *date;
gint instCount;
const GUID *templ_acc_guid;
gboolean allow_incompat = FALSE;
GError *err = NULL;
allow_incompat = gnc_gconf_get_bool("dev", "allow_file_incompatibility", &err);
if (err != NULL)
{
g_warning("error getting gconf value [%s]", err->message);
g_error_free(err);
allow_incompat = FALSE;
}
g_debug("allow_incompatibility: [%s]", allow_incompat ? "true" : "false");
gboolean allow_incompat = TRUE;
templ_acc_guid = xaccAccountGetGUID(sx->template_acct);

View File

@ -74,17 +74,7 @@ void
write_account_tree(FILE *out, Account *root, sixtp_gdv2 *gd)
{
GList *descendants, *node;
gboolean allow_incompat = FALSE;
GError *err = NULL;
allow_incompat = gnc_gconf_get_bool("dev", "allow_file_incompatibility", &err);
if (err != NULL)
{
g_warning("error getting gconf value [%s]", err->message);
g_error_free(err);
allow_incompat = FALSE;
}
g_debug("allow_incompatibility: [%s]", allow_incompat ? "true" : "false");
gboolean allow_incompat = TRUE;
if (allow_incompat)
write_one_account(out, root, gd, allow_incompat);