Move flag to indicate report loaded to before gnc_html_show_url

If the report fails to load and gives an error message, once the error
message is closed the focus goes back to the report page and starts to
load the report again so to fix this the loaded flag is moved to before
gnc_html_show_url
This commit is contained in:
Robert Fewell 2020-12-07 13:57:47 +00:00
parent 6b847dca76
commit 0f76265c29

View File

@ -377,6 +377,8 @@ gnc_plugin_page_report_load_uri (GncPluginPage *page)
gtk_widget_show_all( GTK_WIDGET(priv->container) );
priv->loaded = TRUE;
// this sets the window for the progressbar
gnc_window_set_progressbar_window( GNC_WINDOW(page->window) );
@ -386,8 +388,6 @@ gnc_plugin_page_report_load_uri (GncPluginPage *page)
gnc_html_show_url(priv->html, type, url_location, url_label, 0);
g_free(url_location);
priv->loaded = TRUE;
gnc_plugin_page_report_set_progressbar( page, FALSE );
// this resets the window for the progressbar to NULL