mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
825538a85e
commit
b2959318c2
@ -35,6 +35,7 @@
|
|||||||
#include "gnc-gui-query.h"
|
#include "gnc-gui-query.h"
|
||||||
#include "gnc-query-list.h"
|
#include "gnc-query-list.h"
|
||||||
#include "gnc-gconf-utils.h"
|
#include "gnc-gconf-utils.h"
|
||||||
|
#include "gnc-session.h"
|
||||||
#include "qof.h"
|
#include "qof.h"
|
||||||
|
|
||||||
#include "Transaction.h" /* for the SPLIT_* and TRANS_* */
|
#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,
|
sw->component_id = gnc_register_gui_component (DIALOG_SEARCH_CM_CLASS,
|
||||||
refresh_handler,
|
refresh_handler,
|
||||||
close_handler, sw);
|
close_handler, sw);
|
||||||
|
gnc_gui_component_set_session (sw->component_id,
|
||||||
|
gnc_get_current_session());
|
||||||
|
|
||||||
/* And setup the close callback */
|
/* And setup the close callback */
|
||||||
g_signal_connect (G_OBJECT (sw->dialog), "destroy",
|
g_signal_connect (G_OBJECT (sw->dialog), "destroy",
|
||||||
|
Loading…
Reference in New Issue
Block a user