IDE, procedure list: added check for the case when we don't have any procedures in current file, bug #18897

git-svn-id: trunk@29773 -
This commit is contained in:
maxim 2011-03-09 21:00:57 +00:00
parent 125402cb2e
commit b6cbb4cf84

View File

@ -437,7 +437,7 @@ begin
cbObjects.Items.Insert(1, lisPListNone);
finally
cbObjects.ItemIndex := 0; // select <All> as the default
if cbObjects.Text = '' then // some widgetsets have issues here so we do this
if (cbObjects.Items.Count > 0) and (cbObjects.Text = '') then // some widgetsets have issues here so we do this
cbObjects.Text := cbObjects.Items[0];
end;
end;