mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +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
Notes:
sideshowbarker
2024-07-19 10:39:34 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/22776589f0d
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…
Reference in a new issue