summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-18 18:17:15 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-18 21:29:01 +0200
commitfad6b8f26792e35b31670a363a4c99d91ffe213f (patch)
tree9557df6b9fa860125021499aa9451bc1f16143f5 /Libraries/LibGUI
parent8075db683bc685408f3650a47158c84c0d89fb29 (diff)
downloadserenity-fad6b8f26792e35b31670a363a4c99d91ffe213f.zip
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.)
Diffstat (limited to 'Libraries/LibGUI')
-rw-r--r--Libraries/LibGUI/FileSystemModel.cpp2
1 files changed, 1 insertions, 1 deletions
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<String, RefPtr<Gfx::Bitmap>> s_thumbnail_cache;