summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c289f6f)
raw | patch | inline | side by side (parent: c289f6f)
author | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 1 Jun 2007 22:20:30 +0000 (18:20 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sat, 2 Jun 2007 03:12:56 +0000 (23:12 -0400) |
Its wrong to exit the application if we destroy a random widget
contained withing something else; especially if its some small
trivial thing that has no impact on the overall operation.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
contained withing something else; especially if its some small
trivial thing that has no impact on the overall operation.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index d6472636c366b52552c70d259f3288758591d6c0..a8185a3014d4f10f11efe9ff7b917b89fc07cf03 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
# -- Standard bindings
#
-bind . <Destroy> do_quit
+bind . <Destroy> {if {{%W} eq {.}} do_quit}
bind all <$M1B-Key-q> do_quit
bind all <$M1B-Key-Q> do_quit
bind all <$M1B-Key-w> {destroy [winfo toplevel %W]}