diff options
author | Urs Fleisch <ufleisch@users.sourceforge.net> | 2016-05-04 19:47:16 +0200 |
---|---|---|
committer | Błażej Szczygieł <spaz16@wp.pl> | 2016-05-18 18:20:11 +0000 |
commit | f162e29acca99aaab173fb323d112aad9ec6c2b5 (patch) | |
tree | ce663fc29f879ed486c9329d20ac88c71dab6d2e /src/src.pro | |
parent | 1108291e1a2e7de23440c2b36b2fd31010ae3f51 (diff) |
xcb: Fix dropping URL on Firefox window.
When a URL is dropped on a Firefox window, the "text/x-moz-url" data
takes precedence over the "text/uri-list". The "text/x-moz-url" is
interpreted as UTF16, however, the data from Qt 5 applications is not
in the correct format. The code to create correct UTF16 data exists,
but it is not called for two reasons: The atomName will never be
"text/x-moz-url" because it is changed to "text/uri-list" by
mimeAtomToString() and the InternalMimeData::hasFormatHelper() case is
already handled above and the else part will never be considered.
This patch fixes the check and brings it into the right order.
Task-number: QTBUG-49947
Change-Id: I5ebd31914cc6c1417c513c1ff09e0e858a16915d
Reviewed-by: Dmitry Shachnev <mitya57@gmail.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com>
Diffstat (limited to 'src/src.pro')
0 files changed, 0 insertions, 0 deletions