mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-25 21:07:20 -08:00
fix: only set tooltip if commit exists
Some checks are pending
Some checks are pending
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
b2e01f0d3e
commit
4160f8ab9c
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ namespace SourceGit.Views
|
||||||
_inlineCommits.Add(sha, c);
|
_inlineCommits.Add(sha, c);
|
||||||
|
|
||||||
// Make sure user still hovers the target SHA.
|
// Make sure user still hovers the target SHA.
|
||||||
if (_lastHover == link)
|
if (_lastHover == link && c != null)
|
||||||
{
|
{
|
||||||
ToolTip.SetTip(this, c);
|
ToolTip.SetTip(this, c);
|
||||||
ToolTip.SetIsOpen(this, true);
|
ToolTip.SetIsOpen(this, true);
|
||||||
|
|
Loading…
Reference in a new issue