mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
HackStudio: Fix failure to open files
Use FileSystemPath to figure out that "./foo.cpp" == "foo.cpp"
This commit is contained in:
@@ -203,7 +203,7 @@ bool Project::add_file(const String& filename)
|
||||
ProjectFile* Project::get_file(const String& filename)
|
||||
{
|
||||
for (auto& file : m_files) {
|
||||
if (file.name() == filename)
|
||||
if (FileSystemPath(file.name()).string() == FileSystemPath(filename).string())
|
||||
return &file;
|
||||
}
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user