project groups: dbl click on dependency open package editor

git-svn-id: trunk@50434 -
This commit is contained in:
mattias 2015-11-20 09:48:36 +00:00
parent 318abf35d9
commit c3f4f32972

View File

@ -530,7 +530,7 @@ end;
procedure TProjectGroupEditorForm.TVPGDblClick(Sender: TObject);
Var
ND: TNodeData;
aFilename: String;
aFilename, PkgName: String;
PG: TProjectGroup;
begin
ND:=SelectedNodeData;
@ -563,8 +563,13 @@ begin
end;
ntDependency:
begin
// ToDo: open package editor
// open package editor
PkgName:=ND.Value;
if PackageEditingInterface.DoOpenPackageWithName(PkgName,[pofAddToRecent],false)<>mrOk
then begin
IDEMessageDialog('Package not found','Package "'+PkgName+'" not found.',mtError,[mbOk]);
exit;
end;
end;
end;
end;