From 043256e15ffbf3404b0bd67a55bedddda46d5dba Mon Sep 17 00:00:00 2001 From: Eddy De Greef Date: Thu, 12 Aug 2004 16:51:06 +0000 Subject: [PATCH] Avoid replace dialog button sensitivity updates when the dialog is not mapped and the selection is altered. In this way many indirect status checks for all files are avoided (triggered by updating the sensitivity of the "Multiple Files..." button). --- source/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/window.c b/source/window.c index 73281bd..aec8c6e 100644 --- a/source/window.c +++ b/source/window.c @@ -1,4 +1,4 @@ -static const char CVSID[] = "$Id: window.c,v 1.168 2004/08/12 13:43:30 edg Exp $"; +static const char CVSID[] = "$Id: window.c,v 1.169 2004/08/12 16:51:06 edg Exp $"; /******************************************************************************* * * * window.c -- Nirvana Editor window creation/deletion * @@ -2286,7 +2286,7 @@ static void modifiedCB(int pos, int nInserted, int nDeleted, int nRestyled, #endif DimSelectionDepUserMenuItems(window, selected); - if (window->replaceDlog != NULL) + if (window->replaceDlog != NULL && XtIsManaged(window->replaceDlog)) { UpdateReplaceActionButtons(window); } -- 2.11.4.GIT