CA-147657: Allow setting the ToolTipText for the command ToolStripButtons and ToolStripMenuSubitems

to null, otherwise the wrond text is shown for items with null can't-execute-reason
that are selected after items with non-null can't execute reason.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2016-07-25 00:47:38 +01:00
parent d32b7a967b
commit 1bbec00d57
2 changed files with 4 additions and 8 deletions

View File

@ -112,10 +112,8 @@ namespace XenAdmin.Commands
Image = _command.ToolBarImage;
}
if (_command.ToolTipText != null)
{
ToolTipText = _command.ToolTipText;
}
//null is allowed (CA-147657)
ToolTipText = _command.ToolTipText;
}
}

View File

@ -75,10 +75,8 @@ namespace XenAdmin.Commands
SecondImage = _command.SecondImage;
}
if (_command.ToolTipText != null)
{
ToolTipText = _command.ToolTipText;
}
//null is allowed (CA-147657)
ToolTipText = _command.ToolTipText;
StarRating = _command.StarRating;
}