mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-15 22:20:44 +01:00
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:
parent
3b364887c4
commit
a5616cc245
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user