r20153 - gnucash/trunk/src/libqof/qof - Remove book_is_readonly check from qof_instance_begin_edit; it crashes if it's actually used.

John Ralls jralls at code.gnucash.org
Sun Jan 23 12:31:28 EST 2011


Author: jralls
Date: 2011-01-23 12:31:28 -0500 (Sun, 23 Jan 2011)
New Revision: 20153
Trac: http://svn.gnucash.org/trac/changeset/20153

Modified:
   gnucash/trunk/src/libqof/qof/qofinstance.c
Log:
Remove book_is_readonly check from qof_instance_begin_edit; it crashes if it's actually used.

Modified: gnucash/trunk/src/libqof/qof/qofinstance.c
===================================================================
--- gnucash/trunk/src/libqof/qof/qofinstance.c	2011-01-23 15:48:30 UTC (rev 20152)
+++ gnucash/trunk/src/libqof/qof/qofinstance.c	2011-01-23 17:31:28 UTC (rev 20153)
@@ -1055,7 +1055,6 @@
     if (!inst) return FALSE;
 
     priv = GET_PRIVATE(inst);
-    if (qof_book_is_readonly(priv->book)) return FALSE;
     priv->editlevel++;
     if (1 < priv->editlevel) return FALSE;
     if (0 >= priv->editlevel)



More information about the gnucash-changes mailing list