Skip to content

Commit

Permalink
gitk: Avoid handling the Return key twice in Add Branch
Browse files Browse the repository at this point in the history
This reverts commit 63767d5.

A similar change was made as part of commit 76f1594, 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>
  • Loading branch information
Alexander Gavrilov authored and Paul Mackerras committed Nov 18, 2008
1 parent cdc8429 commit 68149a7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion gitk
Original file line number Diff line number Diff line change
Expand Up @@ -8270,7 +8270,6 @@ proc mkbranch {} {
grid $top.id $top.sha1 -sticky w
label $top.nlab -text [mc "Name:"]
entry $top.name -width 40
bind $top.name <Key-Return> "[list mkbrgo $top]"
grid $top.nlab $top.name -sticky w
frame $top.buts
button $top.buts.go -text [mc "Create"] -command [list mkbrgo $top]
Expand Down

0 comments on commit 68149a7

Please sign in to comment.