Skip to content

Commit

Permalink
git-gui: Work around random missing scrollbar in revision list
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn O. Pearce committed Jan 23, 2008
1 parent 6caaf2d commit 3ddff72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/choose_rev.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,8 @@ method _sb_set {sb orient first last} {
focus $old_focus
}
}
$sb set $first $last

catch {$sb set $first $last}
}

method _show_tooltip {pos} {
Expand Down

0 comments on commit 3ddff72

Please sign in to comment.