Commit 1343b1dd authored by Juha Manninen's avatar Juha Manninen
Browse files

Packager: Fix a crash when adding a package dependency which already is there. Issue #29680.

git-svn-id: trunk@51896 -
parent db4dd486
......@@ -927,13 +927,12 @@ begin
end;
NewDependency.PackageName:=DependPkgNameComboBox.Text;
if CheckAddingDependency(LazPackage,NewDependency,false,true)<>mrOk then exit;
ModalResult:=CheckAddingDependency(LazPackage,NewDependency,false,true);
if ModalResult<>mrOk then exit;
// ok
Params.Dependency:=NewDependency;
NewDependency:=nil;
ModalResult:=mrOk;
finally
NewDependency.Free;
end;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment