aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevashish Sharma <dsharma@src.gnome.org>2006-02-23 18:56:07 +0800
committerDevashish Sharma <dsharma@src.gnome.org>2006-02-23 18:56:07 +0800
commitd0ecf4969e7ef2d79e6b718db1929125f5e4bbb8 (patch)
tree2d4c40e700623af6d6c73a14bbe8c8a36a745b93
parent24bf0218e8f93e904e0f8d0285806fc1506cbbb3 (diff)
downloadgsoc2013-evolution-d0ecf4969e7ef2d79e6b718db1929125f5e4bbb8.tar
gsoc2013-evolution-d0ecf4969e7ef2d79e6b718db1929125f5e4bbb8.tar.gz
gsoc2013-evolution-d0ecf4969e7ef2d79e6b718db1929125f5e4bbb8.tar.bz2
gsoc2013-evolution-d0ecf4969e7ef2d79e6b718db1929125f5e4bbb8.tar.lz
gsoc2013-evolution-d0ecf4969e7ef2d79e6b718db1929125f5e4bbb8.tar.xz
gsoc2013-evolution-d0ecf4969e7ef2d79e6b718db1929125f5e4bbb8.tar.zst
gsoc2013-evolution-d0ecf4969e7ef2d79e6b718db1929125f5e4bbb8.zip
Fix for Bug #332123.
svn path=/trunk/; revision=31567
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 840fe2c101..1d0c396709 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,10 @@
2006-02-23 Devashish Sharma <sdevashish@novell.com>
+ * gui/contact-editor/e-contact-editor.c (update_preview_cb) :
+ Fixes Bug #332123 - crash while trying to add an image to a contact
+
+2006-02-23 Devashish Sharma <sdevashish@novell.com>
+
* gui/component/addressbook-component.c (impl_requestCreateItem) :
New Contact should create contact on selected Addressbook.
Fixes Bug # 326788 and 326721.
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index fe56acec5d..2097eee1f6 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -2739,6 +2739,8 @@ update_preview_cb (GtkFileChooser *file_chooser, gpointer data)
preview = GTK_WIDGET (data);
filename = gtk_file_chooser_get_preview_filename (file_chooser);
+ if (filename == NULL)
+ return;
pixbuf = gdk_pixbuf_new_from_file_at_size (filename, 128, 128, NULL);
have_preview = (pixbuf != NULL);