Qt: take care about dropfiles senders which does not respect xorg desktop standards.issue #21052

git-svn-id: trunk@34683 -
This commit is contained in:
zeljko 2012-01-09 15:36:55 +00:00
parent 3b364887c4
commit a5616cc245

View File

@ -2551,10 +2551,10 @@ begin
QStrList := QStringList_create();
try
QMimeData_formats(MimeData, QStrList);
for i := 0 to QStringList_size(QStrList) - 1 do
for i := QStringList_size(QStrList) - 1 downto 0 do
begin
QStringList_at(QStrList, @WStr, i);
GotFiles := WStr = 'text/plain';
GotFiles := (WStr = 'text/plain') or (WStr = 'text/uri-list');
if GotFiles then
break;
end;