# HG changeset patch # User Richard Laager # Date 1139371814 0 # Node ID 18d320fdf28c7c00a26857e3a05400b3fd7a6e92 # Parent 5d5e9c65fa42a2b44557e4a3d2b79670fc3f9385 [gaim-migrate @ 15534] SF Patch #1426979 from Sadrul Fixes SF Bug #1425702 Buddy Pounce Manager Crashes committer: Tailor Script diff -r 5d5e9c65fa42 -r 18d320fdf28c src/gtkpounce.c --- a/src/gtkpounce.c Wed Feb 08 03:02:50 2006 +0000 +++ b/src/gtkpounce.c Wed Feb 08 04:10:14 2006 +0000 @@ -1066,9 +1066,10 @@ { GtkTreeIter iter; - if (pounces_manager_find_pounce(&iter, pounce)) + if (pounces_manager && pounces_manager_find_pounce(&iter, pounce)) gtk_list_store_remove(pounces_manager->model, &iter); + gaim_request_close_with_handle(pounce); gaim_pounce_destroy(pounce); } @@ -1087,7 +1088,7 @@ pouncee = gaim_pounce_get_pouncee(pounce); buf = g_strdup_printf(_("Are you sure you want to delete the pounce on %s for %s?"), pouncee, pouncer); - gaim_request_action(NULL, NULL, buf, NULL, 0, pounce, 2, + gaim_request_action(pounce, NULL, buf, NULL, 0, pounce, 2, _("Delete"), pounces_manager_delete_confirm_cb, _("Cancel"), g_free); g_free(buf);