mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 14:28:49 +00:00
LibGUI: Port the drag&drop code to Core::MimeData
This commit is contained in:
parent
3cba9c3c25
commit
814d59f462
Notes:
sideshowbarker
2024-07-19 09:20:38 +09:00
Author: https://github.com/awesomekling
Commit: 814d59f462
10 changed files with 59 additions and 53 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue