Index: profile-editor.c
===================================================================
RCS file: /cvs/gnome/gnome-terminal/src/profile-editor.c,v
retrieving revision 1.57
diff -U5 -r1.57 profile-editor.c
--- profile-editor.c	5 Jan 2006 15:18:09 -0000	1.57
+++ profile-editor.c	28 Aug 2006 09:10:16 -0000
@@ -657,10 +657,15 @@
                           TerminalProfile *profile)
 {
   char *text;
   
   text = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (entry));
+
+  if (text == NULL)
+    {
+      return;
+    }
   
   terminal_profile_set_background_image_file (profile, text);
 
   g_free (text);
 }
@@ -1142,11 +1147,11 @@
                         G_CALLBACK (transparent_radio_toggled),
                         profile);
 
       w = glade_xml_get_widget (xml, "background-image-filechooser");
       profile_editor_update_background_image (editor, profile);
-      g_signal_connect (G_OBJECT (w), "selection-changed",
+      g_signal_connect (G_OBJECT (w), "file-set",
                         G_CALLBACK (background_image_changed),
                         profile);
       setup_background_filechooser (w, profile);
 
       w = glade_xml_get_widget (xml, "scroll-background-checkbutton");
