diff options
Diffstat (limited to 'src/ui/ui_invoices.cpp')
| -rw-r--r-- | src/ui/ui_invoices.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/ui/ui_invoices.cpp b/src/ui/ui_invoices.cpp index ffdfb9b..e7872d1 100644 --- a/src/ui/ui_invoices.cpp +++ b/src/ui/ui_invoices.cpp @@ -49,11 +49,13 @@ static void _set_active_invoice(invoice inv) void ui::destroy_invoices() { - memops::unalloc(invoice_items_buffer); - memops::unalloc(activity_buffer); + // Currently causes crash because of multithreaded imports. + // Main thread needs to be locked. + //memops::unalloc(invoice_items_buffer); + //memops::unalloc(activity_buffer); - invoice_items_buffer = 0; - activity_buffer = 0; + //invoice_items_buffer = 0; + //activity_buffer = 0; } void ui::setup_invoices() @@ -497,6 +499,9 @@ static void draw_send_options() _reload_activities(); } + else { + // @TODO show failure reason + } }); } // if (ImGui::Selectable(locale::get("ui.sendAs.einvoice"), false)) { |
