soc.2009.vulture: e3d21261: When the user cancels node deletion, don...

gdick at soc.pidgin.im gdick at soc.pidgin.im
Sat Aug 8 16:06:26 EDT 2009


-----------------------------------------------------------------
Revision: e3d2126104f3a40c863b972aa2ec0fd47c937ed0
Ancestor: a1ff4c967200d258663bf3cbbfcdc15d6a45130a
Author: gdick at soc.pidgin.im
Date: 2009-08-08T16:26:21
Branch: im.pidgin.soc.2009.vulture
URL: http://d.pidgin.im/viewmtn/revision/info/e3d2126104f3a40c863b972aa2ec0fd47c937ed0

Modified files:
        vulture/vultureblist.c

ChangeLog: 

When the user cancels node deletion, don't go ahead and do it anyway...

-------------- next part --------------
============================================================
--- vulture/vultureblist.c	a626eeb6f0d006ed8c76dd39ed6b53f24d7e7196
+++ vulture/vultureblist.c	29a9b7b5a6ecdf75e3ae0d5a4e3e11dba9a35248
@@ -1327,9 +1327,9 @@ static void RemoveNodeRequest(HWND hwndB
 	{
 		EnterCriticalSection(&lpvblistnode->cs);
 			if(lpvblistnode->nodetype == PURPLE_BLIST_GROUP_NODE)
-				bDelete = MessageBoxFromStringTable(g_hwndMain, IDS_QUERY_DELGROUP, MB_ICONEXCLAMATION | MB_YESNO);
+				bDelete = (MessageBoxFromStringTable(g_hwndMain, IDS_QUERY_DELGROUP, MB_ICONEXCLAMATION | MB_YESNO) == IDYES);
 			else if(lpvblistnode->nodetype == PURPLE_BLIST_CONTACT_NODE)
-				bDelete = MessageBoxFromStringTable(g_hwndMain, IDS_QUERY_DELCONTACT, MB_ICONEXCLAMATION | MB_YESNO);
+				bDelete = (MessageBoxFromStringTable(g_hwndMain, IDS_QUERY_DELCONTACT, MB_ICONEXCLAMATION | MB_YESNO) == IDYES);
 		LeaveCriticalSection(&lpvblistnode->cs);
 	}
 


More information about the Commits mailing list