mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 17:00:31 +02:00
IDE: DoOpenEditorFile: do not open directories
git-svn-id: trunk@33324 -
This commit is contained in:
parent
4628bd06d0
commit
3e5c331236
@ -9271,6 +9271,11 @@ begin
|
||||
// check if symlink and ask user open the real file instead
|
||||
ChooseSymlink(AFilename);
|
||||
|
||||
if DirectoryExistsUTF8(AFileName) then begin
|
||||
debugln(['TMainIDE.DoOpenEditorFile skipping directory ',AFileName]);
|
||||
exit(mrCancel);
|
||||
end;
|
||||
|
||||
FilenameNoPath:=ExtractFilename(AFilename);
|
||||
|
||||
// check to not open directories
|
||||
|
Loading…
Reference in New Issue
Block a user