OSDN Git Service

MainFrm.cpp: Although the command lnie option '/e' was specified, pressing the ESC...
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Mon, 7 Jan 2019 14:24:07 +0000 (23:24 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Mon, 7 Jan 2019 14:24:07 +0000 (23:24 +0900)
Src/MainFrm.cpp

index 767afae..e1d89f5 100644 (file)
@@ -1685,7 +1685,7 @@ BOOL CMainFrame::PreTranslateMessage(MSG* pMsg)
        {
                if (theApp.m_bEscShutdown && m_wndTabBar.GetItemCount() <= 1)
                {
-                       AfxGetMainWnd()->PostMessage(WM_COMMAND, ID_APP_EXIT);
+                       AfxGetMainWnd()->SendMessage(WM_COMMAND, ID_APP_EXIT);
                        return TRUE;
                }
                else if (GetOptionsMgr()->GetBool(OPT_CLOSE_WITH_ESC) && m_wndTabBar.GetItemCount() == 0)