From 54f2ae3edf3c7b8cba1765d975e76ab154c621c1 Mon Sep 17 00:00:00 2001 From: Andy2 Date: Mon, 7 Mar 2011 06:29:40 -0800 Subject: [PATCH] error string for: fire user error rather than committing turn when trade attempted without any tiles selected. --- xwords4/linux/linuxutl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xwords4/linux/linuxutl.c b/xwords4/linux/linuxutl.c index 354c6511f..e8a038b48 100644 --- a/xwords4/linux/linuxutl.c +++ b/xwords4/linux/linuxutl.c @@ -246,6 +246,10 @@ linux_getErrString( UtilErrID id, XP_Bool* silent ) message = "Remove played tiles before trading."; break; + case ERR_NO_EMPTY_TRADE: + message = "No tiles selected; trade cancelled."; + break; + case ERR_CANT_UNDO_TILEASSIGN: message = "Tile assignment can't be undone."; break;