]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix breakage of `Restart Session' in r6802. When restarting the
authorSimon Tatham <anakin@pobox.com>
Thu, 21 Sep 2006 11:48:32 +0000 (11:48 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 21 Sep 2006 11:48:32 +0000 (11:48 +0000)
session, we were clearing the new session_closed flag, but failing
to clear must_close_session; with that set, the session was being
opened but immediately re-closed.

[originally from svn r6857]
[r6802 == 0dcdb6c3c19ecae20dcc6f947169b3c98bcbae9d]

windows/window.c

index d58111fd59cf48eac5b74775743364aa112c1cbc..963b5ba7b838bc1d2e55ef30a2a6656288074f86 100644 (file)
@@ -272,6 +272,7 @@ static void start_backend(void)
        DeleteMenu(popup_menus[i].menu, IDM_RESTART, MF_BYCOMMAND);
     }
 
+    must_close_session = FALSE;
     session_closed = FALSE;
 }