@matheusbsbs / matheus-bagliano / commits / df904497ec
Fork 0

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>

Paul Mackerras committed Aug 29, 2007 at 22:03 UTC df904497ecc15382199045bb257250c857f04eca
1 file changed +1 -1
gitk
+1 -1
@@ -2007,6 +2007,7 @@ proc showview {n} {
2007 .bar.view entryconf Edit* -state [expr {$n == 0? "disabled": "normal"}]
2008 .bar.view entryconf Delete* -state [expr {$n == 0? "disabled": "normal"}]
2009
2010 + run refill_reflist
2011 if {![info exists viewdata($n)]} {
2012 if {$selid ne {}} {
2013 set pending_select $selid
@@ -2070,7 +2071,6 @@ proc showview {n} {
2071 } elseif {$numcommits == 0} {
2072 show_status "No commits selected"
2073 }
2073 - run refill_reflist
2074 }
2075
2076 # Stuff relating to the highlighting facility