2658{
2659 g_return_if_fail (m_model->txn_type_valid());
2660
2661 gnc_suspend_gui_refresh ();
2662 auto [success, trans] = m_model->create_transaction();
2663 gnc_resume_gui_refresh ();
2664
2665 if (success && trans)
2666 {
2667 auto split = xaccTransFindSplitByAccount (trans, m_model->account());
2668 if (split)
2669 {
2673 gnc_split_reg_raise (gsr);
2674
2675 if (gnc_split_reg_clear_filter_for_split (gsr, split))
2677
2678 gnc_split_reg_jump_to_split (gsr, split);
2679 }
2680 }
2681
2682 gnc_close_gui_component_by_data (ASSISTANT_STOCK_TRANSACTION_CM_CLASS, this);
2683}
void gnc_main_window_open_page(GncMainWindow *window, GncPluginPage *page)
Display a data plugin page in a window.
void gnc_plugin_page_register_clear_current_filter(GncPluginPage *plugin_page)
This function clears the registers current filter.
GncPluginPage * gnc_plugin_page_register_new(Account *account, gboolean subaccounts)
Create a new "register" plugin page, given a pointer to an account.
GNCSplitReg * gnc_plugin_page_register_get_gsr(GncPluginPage *plugin_page)
Get the GNCSplitReg data structure associated with this register page.