IDE, UseUnitsDlg: fix an error caused by r34101 #d757beaf6d. Issue #20965

git-svn-id: trunk@34435 -
This commit is contained in:
juha 2011-12-26 15:20:47 +00:00
parent 8cb950f27a
commit 984936784e

View File

@ -180,8 +180,7 @@ procedure TUseUnitDialog.AllUnitsCheckBoxChange(Sender: TObject);
var
i: Integer;
begin
if not (Assigned(FMainUsedUnits) and Assigned(FImplUsedUnits)
and Assigned(FOtherUnits)) then Exit;
if not (Assigned(FMainUsedUnits) and Assigned(FImplUsedUnits)) then Exit;
if AllUnitsCheckBox.Checked then begin // Add other units
CreateOtherUnitsList;
FilterEdit.Data.AddStrings(FOtherUnits);