r18659 - gnucash/trunk/src/gnome-utils - Better fix for segfault at startup caused by bug 608329's patch and a renamed Accounts tab.

Geert Janssens gjanssens at code.gnucash.org
Tue Feb 16 05:18:03 EST 2010


Author: gjanssens
Date: 2010-02-16 05:18:03 -0500 (Tue, 16 Feb 2010)
New Revision: 18659
Trac: http://svn.gnucash.org/trac/changeset/18659

Modified:
   gnucash/trunk/src/gnome-utils/gnc-main-window.c
Log:
Better fix for segfault at startup caused by bug 608329's patch and a renamed Accounts tab.

Patch by Tom Van Braeckel

Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c	2010-02-15 19:40:20 UTC (rev 18658)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c	2010-02-16 10:18:03 UTC (rev 18659)
@@ -1793,7 +1793,7 @@
   /* Update Tooltip on notebook Tab */
   main_window_find_tab_event(window, page, &event_box);
 
-  if (old_page_long_name != NULL && strstr(old_page_long_name,old_page_name) != NULL) {
+  if (g_strrstr(old_page_long_name,old_page_name) != NULL) {
     gchar *new_page_long_name;
     gint string_position;
 



More information about the gnucash-changes mailing list