r23708 - gnucash/trunk/src/report/report-gnome - Remove the max_count test in gnc_plugin_page_report_name_changed.

Mike Alexander mta at code.gnucash.org
Sun Jan 19 02:08:45 EST 2014


Author: mta
Date: 2014-01-19 02:08:45 -0500 (Sun, 19 Jan 2014)
New Revision: 23708
Trac: http://svn.gnucash.org/trac/changeset/23708

Modified:
   gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c
Log:
Remove the max_count test in gnc_plugin_page_report_name_changed.
This limits the total number of times it can be called per invocation
of GnuCash for no obvious reason.

Modified: gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c
===================================================================
--- gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c	2014-01-18 21:50:31 UTC (rev 23707)
+++ gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c	2014-01-19 07:08:45 UTC (rev 23708)
@@ -889,12 +889,10 @@
 gnc_plugin_page_report_name_changed (GncPluginPage *page, const gchar *name)
 {
     GncPluginPageReportPrivate *priv;
-    static gint count = 1, max_count = 10;
     const gchar *old_name;
 
     g_return_if_fail(GNC_IS_PLUGIN_PAGE_REPORT(page));
     g_return_if_fail(name != NULL);
-    g_return_if_fail(count++ <= max_count);
 
     ENTER("page %p, name %s", page, name);
     priv = GNC_PLUGIN_PAGE_REPORT_GET_PRIVATE(page);



More information about the gnucash-changes mailing list