From: George Tasker Date: Wed, 18 Jul 2001 21:04:36 +0000 (+0000) Subject: Fixed closing of program to work properly if PASS #1 failed for some reason. Before... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e4941e3d1292cfe4422a1c32e077de1fcfce258c Fixed closing of program to work properly if PASS #1 failed for some reason. Before this fix, you could not exit the GUI version of the program under windows without using CTRL-ALT-DEL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/utils/tex2rtf/src/tex2rtf.cpp b/utils/tex2rtf/src/tex2rtf.cpp index 40537bea25..0e44e16304 100644 --- a/utils/tex2rtf/src/tex2rtf.cpp +++ b/utils/tex2rtf/src/tex2rtf.cpp @@ -991,7 +991,10 @@ bool Go(void) TexLoadFile(InputFile); if (stopRunning) + { + OkToClose = TRUE; return FALSE; + } switch (convertMode) { @@ -1017,6 +1020,7 @@ bool Go(void) OnInform("*** Aborted by user."); success = FALSE; stopRunning = FALSE; + OkToClose = TRUE; } if (success)