@matheusbsbs / matheus-bagliano / commits / 3ddff72e58
Fork 0

git-gui: Work around random missing scrollbar in revision list

If the horizontal scrollbar isn't currently visible (because it has not been needed) but we get an update to the scroll port we may find the scrollbar window exists but the Tcl command doesn't. Apparently it is possible for Tk to have partially destroyed the scrollbar by removing the Tcl procedure name but still leaving the widget name in the window registry. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Jan 22, 2008 at 10:40 UTC 3ddff72e581e5c7477aaeb8b97a17691f7ff55bf
1 file changed +2 -1
lib/choose_rev.tcl
+2 -1
@@ -451,7 +451,8 @@ method _sb_set {sb orient first last} {
451 focus $old_focus
452 }
453 }
454 - $sb set $first $last
454 +
455 + catch {$sb set $first $last}
456 }
457
458 method _show_tooltip {pos} {