From 22776589f0d86e7d552d3085792e27351f6a3ba2 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 26 Dec 2019 10:19:44 +0100 Subject: [PATCH] HackStudio: Fix failure to open files Use FileSystemPath to figure out that "./foo.cpp" == "foo.cpp" --- DevTools/HackStudio/Project.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;