mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[gnc-plugin-page-report] re-enable actions after disabling
Otherwise Print, PDFExport, Report Options remain disabled after modifying report options. Also restore nullptr sentinel in disable_during_load_actions array.
This commit is contained in:
parent
9e47c297ba
commit
b450d9a637
@ -210,7 +210,8 @@ static const gchar *disable_during_load_actions[] =
|
||||
{
|
||||
"FilePrintAction",
|
||||
"FilePrintPDFAction",
|
||||
"ReportOptionsAction"
|
||||
"ReportOptionsAction",
|
||||
nullptr
|
||||
};
|
||||
|
||||
/** The default menu items that need to be add to the menu */
|
||||
@ -827,7 +828,7 @@ gnc_plugin_page_report_option_change_cb(gpointer data)
|
||||
gnc_window_set_progressbar_window( nullptr );
|
||||
|
||||
gnc_plugin_set_actions_enabled(G_ACTION_MAP(priv->action_group),
|
||||
disable_during_load_actions, FALSE);
|
||||
disable_during_load_actions, TRUE);
|
||||
priv->reloading = FALSE;
|
||||
}
|
||||
|
||||
@ -1489,7 +1490,7 @@ gnc_plugin_page_report_reload_cb (GSimpleAction *simple,
|
||||
// this resets the window for the progressbar to nullptr
|
||||
gnc_window_set_progressbar_window( nullptr );
|
||||
gnc_plugin_set_actions_enabled(G_ACTION_MAP(priv->action_group),
|
||||
disable_during_load_actions, FALSE);
|
||||
disable_during_load_actions, TRUE);
|
||||
priv->reloading = FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user