mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
dfa31ff6e4
commit
c673516546
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user