# HG changeset patch # User Daniel Atallah # Date 1191034165 0 # Node ID 9ad7979b48387993b91e442111d44e4fcc175fe4 # Parent d9e391c08e0843678fdd167475d7ea098a7edffc If a pounce has been deleted or triggered while we're editing it, make a new one when saving instead of crashing. Fixes #3326 diff -r d9e391c08e08 -r 9ad7979b4838 pidgin/gtkpounce.c --- a/pidgin/gtkpounce.c Fri Sep 28 21:48:10 2007 +0000 +++ b/pidgin/gtkpounce.c Sat Sep 29 02:49:25 2007 +0000 @@ -306,6 +306,13 @@ if (*command == '\0') command = NULL; if (*sound == '\0') sound = NULL; + /* If the pounce has already been triggered, let's pretend it is a new one */ + if (dialog->pounce != NULL + && g_list_find(purple_pounces_get_all(), dialog->pounce) == NULL) { + purple_debug_info("gtkpounce", "Saving pounce that no longer exists; creating new pounce.\n"); + dialog->pounce = NULL; + } + if (dialog->pounce == NULL) { dialog->pounce = purple_pounce_new(PIDGIN_UI, dialog->account,