mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
If qof commit part2 fails, have error routine call engine to trigger
callback to show an error dialog. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17668 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -281,6 +281,7 @@ void gncAddressBeginEdit (GncAddress *addr)
|
|||||||
static void gncAddressOnError (QofInstance *inst, QofBackendError errcode)
|
static void gncAddressOnError (QofInstance *inst, QofBackendError errcode)
|
||||||
{
|
{
|
||||||
PERR("Address QofBackend Failure: %d", errcode);
|
PERR("Address QofBackend Failure: %d", errcode);
|
||||||
|
gnc_engine_signal_commit_error( errcode );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gncAddressOnDone (QofInstance *addr) { }
|
static void gncAddressOnDone (QofInstance *addr) { }
|
||||||
|
|||||||
@@ -429,6 +429,7 @@ void gncBillTermBeginEdit (GncBillTerm *term)
|
|||||||
static void gncBillTermOnError (QofInstance *inst, QofBackendError errcode)
|
static void gncBillTermOnError (QofInstance *inst, QofBackendError errcode)
|
||||||
{
|
{
|
||||||
PERR("BillTerm QofBackend Failure: %d", errcode);
|
PERR("BillTerm QofBackend Failure: %d", errcode);
|
||||||
|
gnc_engine_signal_commit_error( errcode );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bill_free (QofInstance *inst)
|
static void bill_free (QofInstance *inst)
|
||||||
|
|||||||
@@ -393,6 +393,7 @@ void gncCustomerBeginEdit (GncCustomer *cust)
|
|||||||
static void gncCustomerOnError (QofInstance *inst, QofBackendError errcode)
|
static void gncCustomerOnError (QofInstance *inst, QofBackendError errcode)
|
||||||
{
|
{
|
||||||
PERR("Customer QofBackend Failure: %d", errcode);
|
PERR("Customer QofBackend Failure: %d", errcode);
|
||||||
|
gnc_engine_signal_commit_error( errcode );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gncCustomerOnDone (QofInstance *inst)
|
static void gncCustomerOnDone (QofInstance *inst)
|
||||||
|
|||||||
@@ -374,6 +374,7 @@ void gncEmployeeBeginEdit (GncEmployee *employee)
|
|||||||
static void gncEmployeeOnError (QofInstance *employee, QofBackendError errcode)
|
static void gncEmployeeOnError (QofInstance *employee, QofBackendError errcode)
|
||||||
{
|
{
|
||||||
PERR("Employee QofBackend Failure: %d", errcode);
|
PERR("Employee QofBackend Failure: %d", errcode);
|
||||||
|
gnc_engine_signal_commit_error( errcode );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gncEmployeeOnDone (QofInstance *inst)
|
static void gncEmployeeOnDone (QofInstance *inst)
|
||||||
|
|||||||
@@ -1194,6 +1194,7 @@ void gncEntryBeginEdit (GncEntry *entry)
|
|||||||
static void gncEntryOnError (QofInstance *entry, QofBackendError errcode)
|
static void gncEntryOnError (QofInstance *entry, QofBackendError errcode)
|
||||||
{
|
{
|
||||||
PERR("Entry QofBackend Failure: %d", errcode);
|
PERR("Entry QofBackend Failure: %d", errcode);
|
||||||
|
gnc_engine_signal_commit_error( errcode );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gncEntryOnDone (QofInstance *inst) {}
|
static void gncEntryOnDone (QofInstance *inst) {}
|
||||||
|
|||||||
@@ -1488,6 +1488,7 @@ void gncInvoiceBeginEdit (GncInvoice *invoice)
|
|||||||
static void gncInvoiceOnError (QofInstance *inst, QofBackendError errcode)
|
static void gncInvoiceOnError (QofInstance *inst, QofBackendError errcode)
|
||||||
{
|
{
|
||||||
PERR("Invoice QofBackend Failure: %d", errcode);
|
PERR("Invoice QofBackend Failure: %d", errcode);
|
||||||
|
gnc_engine_signal_commit_error( errcode );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gncInvoiceOnDone (QofInstance *invoice) { }
|
static void gncInvoiceOnDone (QofInstance *invoice) { }
|
||||||
|
|||||||
@@ -287,6 +287,7 @@ void gncJobBeginEdit (GncJob *job)
|
|||||||
static void gncJobOnError (QofInstance *inst, QofBackendError errcode)
|
static void gncJobOnError (QofInstance *inst, QofBackendError errcode)
|
||||||
{
|
{
|
||||||
PERR("Job QofBackend Failure: %d", errcode);
|
PERR("Job QofBackend Failure: %d", errcode);
|
||||||
|
gnc_engine_signal_commit_error( errcode );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void job_free (QofInstance *inst)
|
static void job_free (QofInstance *inst)
|
||||||
|
|||||||
@@ -361,6 +361,7 @@ void gncOrderBeginEdit (GncOrder *order)
|
|||||||
static void gncOrderOnError (QofInstance *order, QofBackendError errcode)
|
static void gncOrderOnError (QofInstance *order, QofBackendError errcode)
|
||||||
{
|
{
|
||||||
PERR("Order QofBackend Failure: %d", errcode);
|
PERR("Order QofBackend Failure: %d", errcode);
|
||||||
|
gnc_engine_signal_commit_error( errcode );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gncOrderOnDone (QofInstance *order) {}
|
static void gncOrderOnDone (QofInstance *order) {}
|
||||||
|
|||||||
@@ -533,6 +533,7 @@ void gncTaxTableBeginEdit (GncTaxTable *table)
|
|||||||
static void gncTaxTableOnError (QofInstance *inst, QofBackendError errcode)
|
static void gncTaxTableOnError (QofInstance *inst, QofBackendError errcode)
|
||||||
{
|
{
|
||||||
PERR("TaxTable QofBackend Failure: %d", errcode);
|
PERR("TaxTable QofBackend Failure: %d", errcode);
|
||||||
|
gnc_engine_signal_commit_error( errcode );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gncTaxTableOnDone (QofInstance *inst) {}
|
static void gncTaxTableOnDone (QofInstance *inst) {}
|
||||||
|
|||||||
@@ -451,6 +451,7 @@ void gncVendorBeginEdit (GncVendor *vendor)
|
|||||||
static void gncVendorOnError (QofInstance *vendor, QofBackendError errcode)
|
static void gncVendorOnError (QofInstance *vendor, QofBackendError errcode)
|
||||||
{
|
{
|
||||||
PERR("Vendor QofBackend Failure: %d", errcode);
|
PERR("Vendor QofBackend Failure: %d", errcode);
|
||||||
|
gnc_engine_signal_commit_error( errcode );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gncVendorOnDone (QofInstance *inst)
|
static void gncVendorOnDone (QofInstance *inst)
|
||||||
|
|||||||
Reference in New Issue
Block a user