mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
HackStudio: Fix failure to open files
Use FileSystemPath to figure out that "./foo.cpp" == "foo.cpp"
This commit is contained in:
parent
64842fd0ac
commit
22776589f0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue