r21415 - gnucash/branches/2.4/src/gnome-search - [21414] Bug #651522 - crash in query_free_compiled, gnc_query_list_reset_query

Geert Janssens gjanssens at code.gnucash.org
Mon Oct 10 16:08:40 EDT 2011


Author: gjanssens
Date: 2011-10-10 16:08:40 -0400 (Mon, 10 Oct 2011)
New Revision: 21415
Trac: http://svn.gnucash.org/trac/changeset/21415

Modified:
   gnucash/branches/2.4/src/gnome-search/dialog-search.c
Log:
[21414] Bug #651522 - crash in query_free_compiled, gnc_query_list_reset_query

Modified: gnucash/branches/2.4/src/gnome-search/dialog-search.c
===================================================================
--- gnucash/branches/2.4/src/gnome-search/dialog-search.c	2011-10-10 20:05:47 UTC (rev 21414)
+++ gnucash/branches/2.4/src/gnome-search/dialog-search.c	2011-10-10 20:08:40 UTC (rev 21415)
@@ -35,6 +35,7 @@
 #include "gnc-gui-query.h"
 #include "gnc-query-list.h"
 #include "gnc-gconf-utils.h"
+#include "gnc-session.h"
 #include "qof.h"
 
 #include "Transaction.h"	/* for the SPLIT_* and TRANS_* */
@@ -982,6 +983,8 @@
     sw->component_id = gnc_register_gui_component (DIALOG_SEARCH_CM_CLASS,
                        refresh_handler,
                        close_handler, sw);
+    gnc_gui_component_set_session (sw->component_id,
+                                   gnc_get_current_session());
 
     /* And setup the close callback */
     g_signal_connect (G_OBJECT (sw->dialog), "destroy",



More information about the gnucash-changes mailing list