mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 08:59:32 +02:00
IDE: small optimization when adding example files to recent files list.
git-svn-id: trunk@32004 -
This commit is contained in:
parent
6f3b1db700
commit
dc58625e58
@ -927,7 +927,6 @@ var
|
||||
WholeFilePath: String;
|
||||
begin
|
||||
aProjPath:=SwitchPathDelims(aProjPath, True);
|
||||
aProjFile:=SwitchPathDelims(aProjFile, True);
|
||||
WholeFilePath:=ExtractFilePath(Application.ExeName) + aProjPath + aProjFile;
|
||||
if FileIsWritable(aProjPath) and FileIsWritable(WholeFilePath) then
|
||||
AddToRecentList(WholeFilePath, FRecentProjectFiles, FMaxRecentProjectFiles);
|
||||
|
Loading…
Reference in New Issue
Block a user