Qt: DropFiles bugfix for #13799 and #13800

git-svn-id: trunk@20143 -
This commit is contained in:
zeljko 2009-05-23 10:48:25 +00:00
parent 5ae268758c
commit 3fc7d3dbfc

View File

@ -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