summaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2007-08-29 12:03:07 (GMT)
committerPaul Mackerras <paulus@samba.org>2007-08-29 12:03:07 (GMT)
commitdf904497ecc15382199045bb257250c857f04eca (patch)
tree09fda49521c7b3a845b3b7e8dadc52590a075e51 /gitk
parent0380081c65c3e8a46caad9aebe8e97ff65510453 (diff)
downloadgit-df904497ecc15382199045bb257250c857f04eca.zip
git-df904497ecc15382199045bb257250c857f04eca.tar.gz
git-df904497ecc15382199045bb257250c857f04eca.tar.bz2
gitk: Fix bug causing incorrect ref list contents when switching view
If the view we're switching to hadn't been read in, we hit an early return in showview which meant we didn't update the ref list window. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'gitk')
-rwxr-xr-xgitk2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitk b/gitk
index 060c4c0..0125f17 100755
--- a/gitk
+++ b/gitk
@@ -2007,6 +2007,7 @@ proc showview {n} {
.bar.view entryconf Edit* -state [expr {$n == 0? "disabled": "normal"}]
.bar.view entryconf Delete* -state [expr {$n == 0? "disabled": "normal"}]
+ run refill_reflist
if {![info exists viewdata($n)]} {
if {$selid ne {}} {
set pending_select $selid
@@ -2070,7 +2071,6 @@ proc showview {n} {
} elseif {$numcommits == 0} {
show_status "No commits selected"
}
- run refill_reflist
}
# Stuff relating to the highlighting facility