Set the vfolder_editor variable to null before we close the dialogue,

2002-07-15  Not Zed  <NotZed@Ximian.com>

        * mail-vfolder.c (vfolder_editor_clicked): Set the vfolder_editor
        variable to null before we close the dialogue, otherwise the close
        destroys it and reverts the file.

svn path=/trunk/; revision=17453
This commit is contained in:
Not Zed
2002-07-15 08:37:14 +00:00
committed by Michael Zucci
parent 7ead5a04c4
commit 74c652de58
2 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,9 @@
2002-07-15 Not Zed <NotZed@Ximian.com>
* mail-vfolder.c (vfolder_editor_clicked): Set the vfolder_editor
variable to null before we close the dialogue, otherwise the close
destroys it and reverts the file.
* component-factory.c (populate_folder_context_menu): Oops,
accidentally checked in some unfinished, unworking code.
Reverted.

View File

@ -761,14 +761,14 @@ vfolder_editor_clicked (GtkWidget *dialog, int button, void *data)
sprintf(user, "%s/vfolders.xml", evolution_dir);
if (button == 0)
rule_context_save ((RuleContext *)context, user);
rule_context_save((RuleContext *)context, user);
else
rule_context_revert ((RuleContext *)context, user);
rule_context_revert((RuleContext *)context, user);
vfolder_editor = NULL;
if (button != -1)
gnome_dialog_close (GNOME_DIALOG (dialog));
vfolder_editor = NULL;
}
static void