Bug #651522 - crash in query_free_compiled, gnc_query_list_reset_query

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21414 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2011-10-10 20:05:47 +00:00
parent 825538a85e
commit b2959318c2

View File

@ -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_* */
@ -1025,6 +1026,8 @@ gnc_search_dialog_init_widgets (GNCSearchWindow *sw, const gchar *title)
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",