mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
parent
df4db61c4e
commit
5b42ecd68d
3 changed files with 6 additions and 6 deletions
|
|
@ -12,7 +12,7 @@ object frmDescrEdit: TfrmDescrEdit
|
|||
Constraints.MinWidth = 400
|
||||
OnCreate = FormCreate
|
||||
OnDestroy = FormDestroy
|
||||
Position = poScreenCenter
|
||||
Position = poOwnerFormCenter
|
||||
SessionProperties = 'Height;WindowState;Width'
|
||||
LCLVersion = '2.0.4.0'
|
||||
object lblEditCommentFor: TLabel
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ type
|
|||
procedure cm_SaveDescription(const {%H-}Params: array of string);
|
||||
end;
|
||||
|
||||
function ShowDescrEditDlg(const sFileName: String; FileView: TFileView): Boolean;
|
||||
function ShowDescrEditDlg(TheOwner: TComponent; const sFileName: String; FileView: TFileView): Boolean;
|
||||
|
||||
implementation
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ uses
|
|||
const
|
||||
HotkeysCategory = 'Edit Comment Dialog';
|
||||
|
||||
function ShowDescrEditDlg(const sFileName: String; FileView: TFileView): Boolean;
|
||||
function ShowDescrEditDlg(TheOwner: TComponent; const sFileName: String; FileView: TFileView): Boolean;
|
||||
const
|
||||
nbsp = #194#160;
|
||||
var
|
||||
|
|
@ -80,7 +80,7 @@ var
|
|||
begin
|
||||
Result:= False;
|
||||
FileSystem:= FileView.FileSource.IsClass(TFileSystemFileSource);
|
||||
with TfrmDescrEdit.Create(Application) do
|
||||
with TfrmDescrEdit.Create(TheOwner) do
|
||||
try
|
||||
if not FileSystem then
|
||||
FDescr:= TDescription.Create(False)
|
||||
|
|
|
|||
|
|
@ -4342,7 +4342,7 @@ begin
|
|||
if Assigned(aFile) then
|
||||
try
|
||||
if aFile.IsNameValid then
|
||||
ShowDescrEditDlg(aFile.FullPath, frmMain.ActiveFrame)
|
||||
ShowDescrEditDlg(frmMain, aFile.FullPath, frmMain.ActiveFrame)
|
||||
else
|
||||
msgWarning(rsMsgNoFilesSelected);
|
||||
finally
|
||||
|
|
@ -4357,7 +4357,7 @@ begin
|
|||
if aFile.IsNameValid then
|
||||
begin
|
||||
if FileSource.GetLocalName(aFile) then
|
||||
ShowDescrEditDlg(aFile.FullPath, frmMain.ActiveFrame)
|
||||
ShowDescrEditDlg(frmMain, aFile.FullPath, frmMain.ActiveFrame)
|
||||
else
|
||||
msgWarning(rsMsgErrNotSupported);
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue