From a1d55532660fbf51a878c32171c897e4b4be795f Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 19 Dec 2013 07:58:32 -0800 Subject: [PATCH] fix invite button disabling logic --- xwords4/linux/gtkboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xwords4/linux/gtkboard.c b/xwords4/linux/gtkboard.c index f46283920..20de1bbc0 100644 --- a/xwords4/linux/gtkboard.c +++ b/xwords4/linux/gtkboard.c @@ -1240,8 +1240,8 @@ disenable_buttons( GtkGameGlobals* globals ) gtk_widget_set_sensitive( globals->prevhint_button, gsi.canHint ); gtk_widget_set_sensitive( globals->nexthint_button, gsi.canHint ); - gtk_widget_set_sensitive( globals->invite_button, - 0 < globals->cGlobals.nMissing ); + XP_U16 nMissing = server_getMissingPlayers( globals->cGlobals.game.server ); + gtk_widget_set_sensitive( globals->invite_button, 0 < nMissing ); gtk_widget_set_sensitive( globals->commit_button, gsi.curTurnSelected ); #ifdef XWFEATURE_CHAT