From 97f35d0f0612e961120e4072cce71c7584b32c37 Mon Sep 17 00:00:00 2001 From: edgrif <edgrif> Date: Wed, 7 Mar 2007 14:45:35 +0000 Subject: [PATCH] add back test related to dying under lace control. --- src/zmapApp/zmapAppwindow.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/zmapApp/zmapAppwindow.c b/src/zmapApp/zmapAppwindow.c index 08bc1452c..fe9bc3d86 100755 --- a/src/zmapApp/zmapAppwindow.c +++ b/src/zmapApp/zmapAppwindow.c @@ -26,9 +26,9 @@ * * Exported functions: None * HISTORY: - * Last edited: Mar 7 14:06 2007 (edgrif) + * Last edited: Mar 7 14:43 2007 (edgrif) * Created: Thu Jul 24 14:36:27 2003 (edgrif) - * CVS info: $Id: zmapAppwindow.c,v 1.35 2007-03-07 14:07:46 edgrif Exp $ + * CVS info: $Id: zmapAppwindow.c,v 1.36 2007-03-07 14:45:35 edgrif Exp $ *------------------------------------------------------------------- */ @@ -372,7 +372,8 @@ void removeZMapCB(void *app_data, void *zmap_data) app_context->selected_zmap = NULL ; /* When the last zmap has gone and we are dying then exit. */ - if (app_context->state == ZMAPAPP_DYING && ((zMapManagerCount(app_context->zmap_manager)) == 0)) + if ((app_context->state == ZMAPAPP_DYING || !(app_context->show_mainwindow)) + && ((zMapManagerCount(app_context->zmap_manager)) == 0)) exitApp(app_context) ; return ; -- GitLab