]> git.ipfire.org Git - thirdparty/git.git/commitdiff
gitk: Prevent the text pane from becoming editable
authorStefan Haller <stefan@haller-berlin.de>
Sun, 14 Nov 2010 12:21:50 +0000 (13:21 +0100)
committerPaul Mackerras <paulus@samba.org>
Sun, 12 Dec 2010 04:24:09 +0000 (15:24 +1100)
When setting the "Patch/Tree" radio buttons to "Tree" and
clicking on a file to display it, the text pane would
accidentally become editable (because of the early return
in getblobline).

Signed-off-by: Stefan Haller <stefan@haller-berlin.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk

diff --git a/gitk b/gitk
index c5aa844ef448ef7e68314c71fc39e7630b843e36..8f65900763b4878da98f6e6d37d87efa047c36b4 100755 (executable)
--- a/gitk
+++ b/gitk
@@ -7327,6 +7327,7 @@ proc getblobline {bf id} {
                            [lindex [split $commentend .] 0]}]
            mark_ctext_line $lnum
        }
+       $ctext config -state disabled
        return 0
     }
     $ctext config -state disabled