1
0
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:
Martin Prikryl
2022-06-20 14:22:08 +00:00
parent 007aed9e0f
commit bf6a627be8
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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;
}