mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:07:34 +00:00
FileManager: Use URL::create_with_file_protocol() in one place
This commit is contained in:
parent
afb9ee2af8
commit
d42e380906
1 changed files with 1 additions and 5 deletions
|
@ -70,11 +70,7 @@ void DirectoryView::handle_activation(const GUI::ModelIndex& index)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
URL url;
|
GUI::DesktopServices::open(URL::create_with_file_protocol(path));
|
||||||
url.set_protocol("file");
|
|
||||||
url.set_path(path);
|
|
||||||
|
|
||||||
GUI::DesktopServices::open(url);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DirectoryView::DirectoryView()
|
DirectoryView::DirectoryView()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue