mirror of
https://github.com/winscp/winscp.git
synced 2026-10-24 02:28:55 +03:00
Bug 2091: Do not offer to create a link to parent directory, when it happens to be selected, when starting to create a link
https://winscp.net/tracker/2091
(cherry picked from commit 840850acd0)
Source commit: 72c79e2975c9768a2387dd75dd272603fcc9163c
This commit is contained in:
@@ -6628,7 +6628,7 @@ void __fastcall TCustomScpExplorerForm::AddEditLink(TOperationSide Side, bool Ad
|
||||
FileName = File->FileName;
|
||||
PointTo = File->LinkTo;
|
||||
}
|
||||
else
|
||||
else if (!File->IsParentDirectory)
|
||||
{
|
||||
PointTo = File->FileName;
|
||||
}
|
||||
|
||||
@@ -1386,7 +1386,7 @@ void __fastcall TScpCommanderForm::AddEditLink(TOperationSide Side, bool Add)
|
||||
throw Exception(FMTLOAD(RESOLVE_SHORTCUT_ERROR, (FullName)));
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (!ADirView->ItemIsParentDirectory(ADirView->ItemFocused))
|
||||
{
|
||||
PointTo = FileRec->FileName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user