gitk: Avoid handling the Return key twice in Add Branch
This reverts commit 63767d5fb8fe236d8fdeba44297ac925701b27a0. A similar change was made as part of commit 76f15947af7, that added bindings to all dialogs, and this duplication causes mkbrgo to be called twice, the second time after the window has been destroyed. As a result, an error window appears when the code tries to access widgets. Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Alexander Gavrilov committed
Nov 13, 2008 at 23:09 UTC
68149a71978564aaef7a5fe956cf1de2864c16d3
1 file changed
-1
gitk
-1
@@ -8270,7 +8270,6 @@ proc mkbranch {} {
8270
grid $top.id $top.sha1 -sticky w
8271
label $top.nlab -text [mc "Name:"]
8272
entry $top.name -width 40
8273
- bind $top.name <Key-Return> "[list mkbrgo $top]"
8273
grid $top.nlab $top.name -sticky w
8274
frame $top.buts
8275
button $top.buts.go -text [mc "Create"] -command [list mkbrgo $top]