FIX: Incorrect hint when hint is empty

This commit is contained in:
Alexander Koblov 2013-01-10 18:29:51 +00:00
commit d4f13b8956

View file

@ -779,6 +779,10 @@ var
AFile: TDisplayFile;
sHint: UTF8String;
begin
// Rewrite HintStr because when MainControl.Hint is empty
// it would contain parent hint that is not correct behavior
HintInfo^.HintStr:= MainControl.Hint;
if (HintInfo^.HintStr = EmptyStr) or not IsFileIndexInRange(FHintFileIndex) then
Exit; // don't show