summaryrefslogtreecommitdiff
path: root/UCore.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-09-24 09:45:38 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-09-24 09:45:38 +0200
commit71294c99aa628f487d2094c101ecdf1ea829b3e1 (patch)
tree60c0e2f24907fea398c432aa94f26d93b43a5355 /UCore.pas
parentedcba3602767534921955c9e88223c1d6375ca0a (diff)
downloadtuxcmd-71294c99aa628f487d2094c101ecdf1ea829b3e1.tar.xz
Support for relative symlink creation
Diffstat (limited to 'UCore.pas')
-rw-r--r--UCore.pas3
1 files changed, 3 insertions, 0 deletions
diff --git a/UCore.pas b/UCore.pas
index b69b055..416bd45 100644
--- a/UCore.pas
+++ b/UCore.pas
@@ -2186,6 +2186,8 @@ begin
Result := False;
try
AFSymlink := TFSymlink.Create(Application.MainForm);
+ AFSymLink.FileName := FileName;
+ AFSymLink.PossibleNewName := PossibleNewName;
AFSymlink.FromEntry.Text := StrToUTF8(FileName);
AFSymlink.ToEntry.Text := StrToUTF8(PossibleNewName);
AFSymlink.ToEntry.SetFocus;
@@ -2261,6 +2263,7 @@ begin
AFSymlink.FromEntry.Enabled := False;
AFSymlink.ToEntry.Text := StrToUTF8(Data^.LnkPointTo);
AFSymlink.ToEntry.SelectAll;
+ AFSymLink.RelativeCheckButton.Visible := False;
if AFSymlink.Run = mbOK then Result := HandleEditSymlink(UTF8ToStr(AFSymlink.FromEntry.Text), UTF8ToStr(AFSymlink.ToEntry.Text));
finally
AFSymlink.Free;