Explorar el Código

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.)
Andreas Kling hace 4 años
padre
commit
fad6b8f267
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Libraries/LibGUI/FileSystemModel.cpp

+ 1 - 1
Libraries/LibGUI/FileSystemModel.cpp

@@ -484,7 +484,7 @@ Icon FileSystemModel::icon_for(const Node& node) const
             return FileIconProvider::directory_open_icon();
             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;
 static HashMap<String, RefPtr<Gfx::Bitmap>> s_thumbnail_cache;