From: Shawn O. Pearce Date: Thu, 19 Jul 2007 05:45:42 +0000 (-0400) Subject: git-gui: Don't show blame tooltips that we have no data for X-Git-Tag: gitgui-0.8.0~29 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a42289621e372763d5ef34067d5e38a0872fab15;p=git.git git-gui: Don't show blame tooltips that we have no data for If we haven't yet loaded any commit information for a given line but our tooltip timer fired and tried to draw the tooltip we shouldn't; there is nothing to show. Signed-off-by: Shawn O. Pearce --- diff --git a/lib/blame.tcl b/lib/blame.tcl index 4da60ac9a..96072847a 100644 --- a/lib/blame.tcl +++ b/lib/blame.tcl @@ -879,6 +879,11 @@ method _open_tooltip {cur_w} { set org [lindex $amov_data $lno] } + if {$dat eq {}} { + _hide_tooltip $this + return + } + set cmit [lindex $dat 0] set tooltip_commit [list $cmit]