aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/contact-editor
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-10-27 03:14:42 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-10-27 03:14:42 +0800
commit8bc92f7dc73512569861fc8b9c495fe0a836ad27 (patch)
treea45eedc29f5d4db2cdb7b5d9f890e11b32dc9857 /addressbook/gui/contact-editor
parent0aa7075d818bf177390385274c82a50a8c80136f (diff)
downloadgsoc2013-evolution-8bc92f7dc73512569861fc8b9c495fe0a836ad27.tar
gsoc2013-evolution-8bc92f7dc73512569861fc8b9c495fe0a836ad27.tar.gz
gsoc2013-evolution-8bc92f7dc73512569861fc8b9c495fe0a836ad27.tar.bz2
gsoc2013-evolution-8bc92f7dc73512569861fc8b9c495fe0a836ad27.tar.lz
gsoc2013-evolution-8bc92f7dc73512569861fc8b9c495fe0a836ad27.tar.xz
gsoc2013-evolution-8bc92f7dc73512569861fc8b9c495fe0a836ad27.tar.zst
gsoc2013-evolution-8bc92f7dc73512569861fc8b9c495fe0a836ad27.zip
Don't assert, but check if ce->app != NULL, since this function can
2001-10-26 Jon Trowbridge <trow@ximian.com> * gui/contact-editor/e-contact-editor.c (close_dialog): Don't assert, but check if ce->app != NULL, since this function can (apparently) get called multiple times. svn path=/trunk/; revision=14162
Diffstat (limited to 'addressbook/gui/contact-editor')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index 30835ce19b..c60ad8abe1 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -894,12 +894,11 @@ save_card (EContactEditor *ce, gboolean should_close)
static void
close_dialog (EContactEditor *ce)
{
- g_assert (ce->app != NULL);
-
- gtk_widget_destroy (ce->app);
- ce->app = NULL;
-
- gtk_signal_emit (GTK_OBJECT (ce), contact_editor_signals[EDITOR_CLOSED]);
+ if (ce->app != NULL) {
+ gtk_widget_destroy (ce->app);
+ ce->app = NULL;
+ gtk_signal_emit (GTK_OBJECT (ce), contact_editor_signals[EDITOR_CLOSED]);
+ }
}
/* Menu callbacks */