summaryrefslogtreecommitdiff
path: root/Applications/FileManager
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-18 22:03:05 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-18 22:03:05 +0200
commitd42e3809068b069b76a27de11e171f6d808efb82 (patch)
treea3b465d791de50e0d796198bee46763b5f4e4c56 /Applications/FileManager
parentafb9ee2af82243c5156c29bd7fd2faf779c2bdfa (diff)
downloadserenity-d42e3809068b069b76a27de11e171f6d808efb82.zip
FileManager: Use URL::create_with_file_protocol() in one place
Diffstat (limited to 'Applications/FileManager')
-rw-r--r--Applications/FileManager/DirectoryView.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/Applications/FileManager/DirectoryView.cpp b/Applications/FileManager/DirectoryView.cpp
index 4832baaffa..f9800406bd 100644
--- a/Applications/FileManager/DirectoryView.cpp
+++ b/Applications/FileManager/DirectoryView.cpp
@@ -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()