diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-26 10:19:44 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-26 10:19:44 +0100 |
commit | 22776589f0d86e7d552d3085792e27351f6a3ba2 (patch) | |
tree | 892da83f661b91b61200d49d2075f1042f5c9fbf /DevTools | |
parent | 64842fd0ac6fa36c1f114cfe0f6a70db69eada00 (diff) | |
download | serenity-22776589f0d86e7d552d3085792e27351f6a3ba2.zip |
HackStudio: Fix failure to open files
Use FileSystemPath to figure out that "./foo.cpp" == "foo.cpp"
Diffstat (limited to 'DevTools')
-rw-r--r-- | DevTools/HackStudio/Project.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/DevTools/HackStudio/Project.cpp b/DevTools/HackStudio/Project.cpp index f71b088c62..a07e00c356 100644 --- a/DevTools/HackStudio/Project.cpp +++ b/DevTools/HackStudio/Project.cpp @@ -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; |