summaryrefslogtreecommitdiff
path: root/git-gui/git-gui.sh
diff options
context:
space:
mode:
authorPratyush Yadav <me@yadavpratyush.com>2019-08-04 14:39:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-08-07 20:22:51 (GMT)
commit5440eb0ea2651c45a0e46f2335ecbb8d1f42c584 (patch)
tree1495f0e8f5ac96628fffdf5bbeef8361eadd2652 /git-gui/git-gui.sh
parent5ab72271e16ac23c269f5019a74a7b1d65170e47 (diff)
downloadgit-5440eb0ea2651c45a0e46f2335ecbb8d1f42c584.zip
git-5440eb0ea2651c45a0e46f2335ecbb8d1f42c584.tar.gz
git-5440eb0ea2651c45a0e46f2335ecbb8d1f42c584.tar.bz2
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>
Diffstat (limited to 'git-gui/git-gui.sh')
0 files changed, 0 insertions, 0 deletions