Bug 798041 - Open invoices in new window does not work

If you set the preference setting to open invoices in a new window the
invoice still opens in new tab. This setting was being over ridden in
gnc_invoice_new_page so removed that in the function.
This commit is contained in:
Robert Fewell 2020-12-11 13:26:34 +00:00
parent 48f6cc148a
commit 3e76b84475

View File

@ -2275,9 +2275,8 @@ gnc_invoice_new_page (QofBook *bookp, InvoiceDialogType type,
/* Now create the plugin page for this invoice and display it. */
new_page = gnc_plugin_page_invoice_new (iw);
if (window)
gnc_plugin_page_set_use_new_window (new_page, FALSE);
else
if (!window)
window = gnc_plugin_business_get_window ();
gnc_main_window_open_page (window, new_page);