From e98c220813cb12a413711990d9b25aa8a9cb847a Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 31 Jan 2016 17:18:49 +0000 Subject: [PATCH] Fix some enable/disable gadget logic --- amiga/gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amiga/gui.c b/amiga/gui.c index 2eb498487..e4cdd1831 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -1163,8 +1163,8 @@ static void ami_update_buttons(struct gui_window_2 *gwin) SetGadgetAttrs((struct Gadget *)gwin->objects[GID_STOP], gwin->win, NULL, GA_Disabled, stop, TAG_DONE); - if((gwin->tabs) && (ClickTabBase->lib_Version < 53)) - { + if(ClickTabBase->lib_Version < 53) { + if(gwin->tabs <= 1) tabclose = TRUE; GetAttr(GA_Disabled, gwin->objects[GID_CLOSETAB], (uint32 *)&storage); if(storage != tabclose) SetGadgetAttrs((struct Gadget *)gwin->objects[GID_CLOSETAB],