@matheusbsbs / matheus-bagliano / commits / 160e82284e
Fork 0

git-gui: Don't quit when we destroy a child widget

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>

Shawn O. Pearce committed Jun 1, 2007 at 18:20 UTC 160e82284eda034fea84dcc946f9c1965176f25f
1 file changed +1 -1
git-gui.sh
+1 -1
@@ -1600,7 +1600,7 @@ unset browser doc_path doc_url
1600
1601 # -- Standard bindings
1602 #
1603 -bind . <Destroy> do_quit
1603 +bind . <Destroy> {if {{%W} eq {.}} do_quit}
1604 bind all <$M1B-Key-q> do_quit
1605 bind all <$M1B-Key-Q> do_quit
1606 bind all <$M1B-Key-w> {destroy [winfo toplevel %W]}