Skip to contentSkip to conversation

gitk: Avoid handling the Return key twice in Add Branch.

PATCH New Alexander Gavrilov 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 gitk |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
gitk +0 -1
index 3353f4a..46896a2 100755
@@ -8208,7 +8208,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]
Signature · 1 line
1.6.0.3.15.gb8d36