mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Attempt to affect #334627: re-order destroying SX vs. window.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13862 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
4b2f9b705e
commit
a0501f163c
@ -1,3 +1,9 @@
|
|||||||
|
2006-04-26 Joshua Sled <jsled@asynchronous.org>
|
||||||
|
|
||||||
|
* src/gnome/dialog-scheduledxaction.c
|
||||||
|
(scheduledxaction_editor_dialog_destroy): re-order SX disolution
|
||||||
|
vs. ui teardown. Add comment info-request response.
|
||||||
|
|
||||||
2006-04-26 Christian Stimming <stimming@tuhh.de>
|
2006-04-26 Christian Stimming <stimming@tuhh.de>
|
||||||
|
|
||||||
* doc/gnucash.1.in: Properly quote marks. Bug #339731.
|
* doc/gnucash.1.in: Properly quote marks. Bug #339731.
|
||||||
|
@ -1163,12 +1163,6 @@ scheduledxaction_editor_dialog_destroy(GtkObject *object, gpointer data)
|
|||||||
gnc_unregister_gui_component_by_data
|
gnc_unregister_gui_component_by_data
|
||||||
(DIALOG_SCHEDXACTION_EDITOR_CM_CLASS, sxed);
|
(DIALOG_SCHEDXACTION_EDITOR_CM_CLASS, sxed);
|
||||||
|
|
||||||
if ( sxed->newsxP ) {
|
|
||||||
/* FIXME: WTF??? */
|
|
||||||
xaccSchedXactionFree( sxed->sx );
|
|
||||||
}
|
|
||||||
sxed->sx = NULL;
|
|
||||||
|
|
||||||
gnc_embedded_window_close_page(sxed->embed_window, sxed->plugin_page);
|
gnc_embedded_window_close_page(sxed->embed_window, sxed->plugin_page);
|
||||||
gtk_widget_destroy(GTK_WIDGET(sxed->embed_window));
|
gtk_widget_destroy(GTK_WIDGET(sxed->embed_window));
|
||||||
sxed->embed_window = NULL;
|
sxed->embed_window = NULL;
|
||||||
@ -1183,6 +1177,19 @@ scheduledxaction_editor_dialog_destroy(GtkObject *object, gpointer data)
|
|||||||
}
|
}
|
||||||
g_free( sxed->cal_marks );
|
g_free( sxed->cal_marks );
|
||||||
|
|
||||||
|
if ( sxed->newsxP ) {
|
||||||
|
/* FIXME: WTF???
|
||||||
|
*
|
||||||
|
* "WTF" explaination: in the "new" click from the caller, we
|
||||||
|
* set this flag. When "ok" is pressed on the dialog, we set
|
||||||
|
* this flag to false, and thus leave the SX live. If
|
||||||
|
* "Cancel" is clicked, the flag will still be true, and this
|
||||||
|
* SX will be cleaned, here. -- jsled
|
||||||
|
*/
|
||||||
|
xaccSchedXactionFree( sxed->sx );
|
||||||
|
}
|
||||||
|
sxed->sx = NULL;
|
||||||
|
|
||||||
g_free (sxed);
|
g_free (sxed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user