From 2a36fb906209f29ccf93e176d0fb8ceadb1ecc4c Mon Sep 17 00:00:00 2001 From: mattias Date: Fri, 25 May 2018 07:14:34 +0000 Subject: [PATCH] IDE: project inspector: remove file: fixed caption git-svn-id: trunk@58027 - --- ide/projectinspector.pas | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ide/projectinspector.pas b/ide/projectinspector.pas index 91a0f57c57..a76e23a8aa 100644 --- a/ide/projectinspector.pas +++ b/ide/projectinspector.pas @@ -836,7 +836,7 @@ var TVNode: TTreeNode; NodeData: TPENodeData; Item: TObject; - Msg: String; + Msg, Cap: String; DeleteCount: Integer; CurFile: TUnitInfo; begin @@ -867,7 +867,11 @@ begin if DeleteCount=0 then exit; if DeleteCount>1 then Msg:=Format(lisProjInspRemoveItemsF, [IntToStr(DeleteCount)]); - if IDEMessageDialog(lisProjInspConfirmDeletingDependency, + if CurFile<>nil then + Cap:=lisProjInspConfirmRemovingFile + else + Cap:=lisProjInspConfirmDeletingDependency; + if IDEMessageDialog(Cap, Msg, mtConfirmation,[mbYes,mbNo])<>mrYes then exit; // delete