diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-13 21:46:52 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-13 21:48:32 +0100 |
commit | 8b3864c70aafc7247a74ad629ac8ca792c0e0f22 (patch) | |
tree | 81cb68540c3a8793791677bb23b6b627dfc2c60a /Libraries/LibGUI/FileSystemModel.h | |
parent | 6e7ca44dee53cc7f972f84b93dedf7aa8ac6e56a (diff) | |
download | serenity-8b3864c70aafc7247a74ad629ac8ca792c0e0f22.zip |
LibGUI: Have FileSystemModel accept url-list drags onto directories
Diffstat (limited to 'Libraries/LibGUI/FileSystemModel.h')
-rw-r--r-- | Libraries/LibGUI/FileSystemModel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGUI/FileSystemModel.h b/Libraries/LibGUI/FileSystemModel.h index 02bc652075..83c9d39aed 100644 --- a/Libraries/LibGUI/FileSystemModel.h +++ b/Libraries/LibGUI/FileSystemModel.h @@ -124,6 +124,7 @@ public: virtual ModelIndex parent_index(const ModelIndex&) const override; virtual ModelIndex index(int row, int column = 0, const ModelIndex& parent = ModelIndex()) const override; virtual StringView drag_data_type() const override { return "url-list"; } + virtual bool accepts_drag(const ModelIndex&, const StringView& data_type) override; static String timestamp_string(time_t timestamp) { |