13
0

Prefer to receive URI-lists for DnD

This fixes an issue when embedding external files with ISO or some non
ASCII encodings (KDE/dolphin file-manager does not UTF-8 encode
filenames for plain/text DnD). But does so for URIs.

See also #7253 and previous commit
This commit is contained in:
Robin Gareus 2019-05-13 15:43:58 +02:00
parent 1846476127
commit 8ae4fe1aa9
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -241,8 +241,8 @@ EditorRegions::EditorRegions (Editor* e)
list<TargetEntry> region_list_target_table;
region_list_target_table.push_back (TargetEntry ("text/plain"));
region_list_target_table.push_back (TargetEntry ("text/uri-list"));
region_list_target_table.push_back (TargetEntry ("text/plain"));
region_list_target_table.push_back (TargetEntry ("application/x-rootwin-drop"));
_display.add_drop_targets (region_list_target_table);