Commit a3c55aa8 authored by Sven Strickroth's avatar Sven Strickroth

Don't close the main window if it's disabled

(fixes issue #2538)

Based on TortoiseSVN rev. 26944.
Signed-off-by: Sven Strickroth's avatarSven Strickroth <email@cs-ware.de>
parent 07c54fef
......@@ -1980,6 +1980,8 @@ void CMainFrame::OnViewOptions()
void CMainFrame::OnClose()
{
if (!IsWindowEnabled())
return; // just in case someone sends a WM_CLOSE to the main window while another window (dialog,...) is open
if (CheckForSave(CHFSR_CLOSE)!=IDCANCEL)
{
WINDOWPLACEMENT wp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment