diff options
Diffstat (limited to 'Libraries/LibGUI/FilePicker.cpp')
-rw-r--r-- | Libraries/LibGUI/FilePicker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/FilePicker.cpp b/Libraries/LibGUI/FilePicker.cpp index b4e7e4d6f8..019a47d590 100644 --- a/Libraries/LibGUI/FilePicker.cpp +++ b/Libraries/LibGUI/FilePicker.cpp @@ -307,7 +307,7 @@ void FilePicker::on_file_return() bool FilePicker::file_exists(const StringView& path) { struct stat st; - int rc = stat(String(path).characters(), &st); + int rc = stat(path.to_string().characters(), &st); if (rc < 0) { if (errno == ENOENT) return false; |