mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 18:29:12 +02:00
parent
5ae268758c
commit
3fc7d3dbfc
@ -4188,9 +4188,13 @@ begin
|
||||
FilesList := TStringList.Create;
|
||||
try
|
||||
FilesList.Text := UTF16ToUTF8(WStr);
|
||||
{$IFDEF USE_QT_45}
|
||||
SetLength(Files, FilesList.Count);
|
||||
{$ELSE}
|
||||
{last member of TStringList always contains empty string
|
||||
since QMimeData always have #13#10#0 at the end.So we cut it here.}
|
||||
SetLength(Files, FilesList.Count - 1);
|
||||
{$ENDIF}
|
||||
for i := 0 to High(Files) do
|
||||
Files[i] := FilesList.Strings[i];
|
||||
finally
|
||||
|
Loading…
Reference in New Issue
Block a user