From fad6b8f26792e35b31670a363a4c99d91ffe213f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 18 Sep 2020 18:17:15 +0200 Subject: LibGUI: FileSystemModel should provide full paths to FileIconProvider This will allow FileIconProvider to check additional things about the specified path. (We previously only had access to the basename.) --- Libraries/LibGUI/FileSystemModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Libraries/LibGUI') diff --git a/Libraries/LibGUI/FileSystemModel.cpp b/Libraries/LibGUI/FileSystemModel.cpp index a1e9360fbe..0fd614a7e0 100644 --- a/Libraries/LibGUI/FileSystemModel.cpp +++ b/Libraries/LibGUI/FileSystemModel.cpp @@ -484,7 +484,7 @@ Icon FileSystemModel::icon_for(const Node& node) const return FileIconProvider::directory_open_icon(); } - return FileIconProvider::icon_for_path(node.name, node.mode); + return FileIconProvider::icon_for_path(node.full_path(), node.mode); } static HashMap> s_thumbnail_cache; -- cgit v1.2.3