Commit patch for Bug 577221 – optimization update title only when changed

Patch by David Fries.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18063 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff 2009-04-29 00:53:32 +00:00
parent dfa31ff6e4
commit c673516546

View File

@ -1722,9 +1722,10 @@ main_window_update_page_name (GncPluginPage *page,
return;
}
name = g_strstrip(g_strdup(name_in));
if (*name == '\0') {
/* Optimization, if the name hasn't changed, don't update X. */
if (*name == '\0' || 0 == strcmp(name, gnc_plugin_page_get_page_name(page))) {
g_free(name);
LEAVE("empty string");
LEAVE("empty string or name unchanged");
return;
}