IDE restriction browser: if loading widgetset image fails, show only debug info

git-svn-id: trunk@14984 -
This commit is contained in:
tombo 2008-04-26 13:03:55 +00:00
parent 223441d326
commit 738e7cfb33

View File

@ -95,8 +95,13 @@ begin
Down := True;
AllowAllUp := True;
IDEImages.Images_16.GetBitmap(
try
IDEImages.Images_16.GetBitmap(
IDEImages.LoadImage(16, 'issue_'+LCLPlatformDirNames[P]), Glyph);
except
DebugLn('Restriction Browser: Unable to load image for ' + LCLPlatformDirNames[P] + '!');
end;
ShowHint := True;
Hint := LCLPlatformDisplayNames[P];
OnClick := @NameFilterEditChange;