mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 23:49:28 +02:00
IDE: Allow dragging a newly created file to package editor. Issue #41435.
This commit is contained in:
parent
94021dc8b0
commit
0e2a394a0c
@ -3469,6 +3469,7 @@ begin
|
||||
NewFlags:=[];
|
||||
NewUnitName:='';
|
||||
if (NewFileType=pftUnit) then begin
|
||||
InvalidateFileStateCache; // File may not be in cache in some d-n-d situations.
|
||||
Code:=CodeToolBoss.LoadFile(aFilename,true,false);
|
||||
NewUnitName:=CodeToolBoss.GetSourceName(Code,false);
|
||||
Assert(NewUnitName<>'', 'TLazPackage.AddFileByName: NewUnitName is empty.');
|
||||
|
Loading…
Reference in New Issue
Block a user