mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 21:59:16 +02:00
* On opening file, move it to the start of the list (bug ID #33253)
git-svn-id: trunk@57410 -
This commit is contained in:
parent
c93e5ac5f6
commit
4edb42c9f6
@ -477,7 +477,10 @@ begin
|
|||||||
With (Sender as TRecentMenuItem) do
|
With (Sender as TRecentMenuItem) do
|
||||||
FN:=FileName;
|
FN:=FileName;
|
||||||
if (FN<>'') and (OnRecentFile<>Nil) then
|
if (FN<>'') and (OnRecentFile<>Nil) then
|
||||||
|
begin
|
||||||
OnRecentFile(Self,FN);
|
OnRecentFile(Self,FN);
|
||||||
|
AddToRecent(FN); // Gets moved to the top
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user