]> granicus.if.org Git - git/commit
git-gui: call do_quit before destroying the main window
authorPratyush Yadav <me@yadavpratyush.com>
Sun, 4 Aug 2019 14:39:19 +0000 (20:09 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Aug 2019 20:22:51 +0000 (13:22 -0700)
commit5440eb0ea2651c45a0e46f2335ecbb8d1f42c584
tree1495f0e8f5ac96628fffdf5bbeef8361eadd2652
parent5ab72271e16ac23c269f5019a74a7b1d65170e47
git-gui: call do_quit before destroying the main window

If the toplevel window for the window being destroyed is the main window
(aka "."), then simply destroying it means the cleanup tasks are not
executed (like saving the commit message buffer, saving window state,
etc.)

All this is handled by do_quit.  Call it instead of directly
destroying the main window. For other toplevel windows, the old
behavior remains.

Signed-off-by: Pratyush Yadav <me@yadavpratyush.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-gui.sh