LibGUI: Port the drag&drop code to Core::MimeData

This commit is contained in:
Andreas Kling 2020-02-14 13:18:34 +01:00
parent 3cba9c3c25
commit 814d59f462
Notes: sideshowbarker 2024-07-19 09:20:38 +09:00
10 changed files with 59 additions and 53 deletions

View file

@ -561,7 +561,7 @@ bool FileSystemModel::accepts_drag(const ModelIndex& index, const StringView& da
{
if (!index.is_valid())
return false;
if (data_type != "url-list")
if (data_type != "text/uri-list")
return false;
auto& node = this->node(index);
return node.is_directory();