Index: gnome-theme-save.c
===================================================================
RCS file: /cvs/gnome/gnome-control-center/capplets/theme-switcher/gnome-theme-save.c,v
retrieving revision 1.8
diff -u -r1.8 gnome-theme-save.c
--- gnome-theme-save.c	27 Oct 2004 09:32:33 -0000	1.8
+++ gnome-theme-save.c	8 Jan 2006 19:33:24 -0000
@@ -93,7 +93,14 @@
   uri = gnome_vfs_uri_new (dir);
   if (!gnome_vfs_uri_exists (uri))
     gnome_vfs_make_directory_for_uri (uri, 0775);
-  else {
+  gnome_vfs_uri_unref (uri);
+  g_free (dir);
+
+  dir = g_build_filename (g_get_home_dir (), ".themes", theme_name, "index.theme", NULL);
+  uri = gnome_vfs_uri_new (dir);
+
+  if (gnome_vfs_uri_exists (uri))
+  {
 	GtkWidget *dialog;
 	gint response;
 	  
@@ -105,7 +112,11 @@
 	response = gtk_dialog_run(GTK_DIALOG(dialog));
 	gtk_widget_destroy(dialog);
 	if (response == GTK_RESPONSE_CANCEL) 
+	{
+		gnome_vfs_uri_unref (uri);
+		g_free (dir);
 		return FALSE;
+	}
   }
 	  
   gnome_vfs_uri_unref (uri);
