1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:48:14 +00:00

FileManager: Use URL::create_with_file_protocol() in one place

This commit is contained in:
Andreas Kling 2020-04-18 22:03:05 +02:00
parent afb9ee2af8
commit d42e380906

View file

@ -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()