pidgin/gtkpounce.c

branch
release-2.2.1
changeset 20168
5d2fb40e4cdf
parent 20147
66f05a854eee
child 20289
5c844288fbec
child 21162
8359073125ba
--- 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,

mercurial