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