{"thread":{"id":"16317","subject":"[PATCH (GITK)] gitk: Avoid handling the Return key twice in Add Branch.","startedAt":"2008-11-13T20:09:18Z","lastAt":"2008-11-13T20:09:18Z","messageCount":1,"participants":["Alexander Gavrilov"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"95721","messageId":"200811132309.18520.angavrilov@gmail.com","threadId":"16317","inReplyTo":null,"subject":"[PATCH (GITK)] gitk: Avoid handling the Return key twice in Add Branch.","fromName":"Alexander Gavrilov","fromEmail":"angavrilov@gmail.com","sentAt":"2008-11-13T20:09:18Z","receivedAt":"2008-11-13T20:09:18Z","isPatch":true,"sender":{"key":"angavrilov@gmail.com","avatar":"https://avatars.githubusercontent.com/u/42666?v=4"},"body":"This reverts commit 63767d5fb8fe236d8fdeba44297ac925701b27a0.\n\nA similar change was made as part of commit 76f15947af7,\nthat added bindings to all dialogs, and this duplication\ncauses mkbrgo to be called twice, the second time after\nthe window has been destroyed. As a result, an error\nwindow appears when the code tries to access widgets.\n\nSigned-off-by: Alexander Gavrilov <angavrilov@gmail.com>\n---\n gitk |    1 -\n 1 files changed, 0 insertions(+), 1 deletions(-)\n\ndiff --git a/gitk b/gitk\nindex 3353f4a..46896a2 100755\n--- a/gitk\n+++ b/gitk\n@@ -8208,7 +8208,6 @@ proc mkbranch {} {\n     grid $top.id $top.sha1 -sticky w\n     label $top.nlab -text [mc \"Name:\"]\n     entry $top.name -width 40\n-    bind $top.name <Key-Return> \"[list mkbrgo $top]\"\n     grid $top.nlab $top.name -sticky w\n     frame $top.buts\n     button $top.buts.go -text [mc \"Create\"] -command [list mkbrgo $top]\n-- \n1.6.0.3.15.gb8d36\n"}]}