mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
Cope with "delete_window" event on the GTK config box.
That causes the config dialog to terminate with result -1, which wasn't handled at all by the result-receiving code. So GTK PuTTY would continue running its main loop even though it had no windows open and wasn't ever planning to do anything. (cherry picked from commit 4fc5d7a5f5528e2f75e781a2fd0a1fd775f53858)
This commit is contained in:
parent
fee2e42be6
commit
464ab136c2
@ -566,7 +566,7 @@ static void post_initial_config_box(void *vctx, int result)
|
|||||||
|
|
||||||
if (result > 0) {
|
if (result > 0) {
|
||||||
new_session_window(ctx.conf, ctx.geometry_string);
|
new_session_window(ctx.conf, ctx.geometry_string);
|
||||||
} else if (result == 0) {
|
} else {
|
||||||
/* In this main(), which only runs one session in total, a
|
/* In this main(), which only runs one session in total, a
|
||||||
* negative result from the initial config box means we simply
|
* negative result from the initial config box means we simply
|
||||||
* terminate. */
|
* terminate. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user