mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-27 01:50:24 +00:00
FileManager: Use URL::create_with_file_protocol() in one place
This commit is contained in:
parent
afb9ee2af8
commit
d42e380906
Notes:
sideshowbarker
2024-07-19 07:29:46 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d42e3809068
1 changed files with 1 additions and 5 deletions
|
@ -70,11 +70,7 @@ void DirectoryView::handle_activation(const GUI::ModelIndex& index)
|
|||
return;
|
||||
}
|
||||
|
||||
URL url;
|
||||
url.set_protocol("file");
|
||||
url.set_path(path);
|
||||
|
||||
GUI::DesktopServices::open(url);
|
||||
GUI::DesktopServices::open(URL::create_with_file_protocol(path));
|
||||
}
|
||||
|
||||
DirectoryView::DirectoryView()
|
||||
|
|
Loading…
Reference in a new issue