2661{
2662 g_return_if_fail (m_model->txn_type_valid());
2663
2664 gnc_suspend_gui_refresh ();
2665 auto [success, trans] = m_model->create_transaction();
2666 gnc_resume_gui_refresh ();
2667
2668 if (success && trans)
2669 {
2670 auto split = xaccTransFindSplitByAccount (trans, m_model->account());
2671 if (split)
2672 {
2676 gnc_split_reg_raise (gsr);
2677
2678 if (gnc_split_reg_clear_filter_for_split (gsr, split))
2680
2681 gnc_split_reg_jump_to_split (gsr, split);
2682 }
2683 }
2684
2685 gnc_close_gui_component_by_data (ASSISTANT_STOCK_TRANSACTION_CM_CLASS, this);
2686}
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.