diff options
author | speles <speles@mail.ua> | 2021-03-01 23:27:37 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-07 11:00:36 +0100 |
commit | 6e16a5cdfa1b6921185ebb27a41c618f25f269ba (patch) | |
tree | 5c1ba75b0195c0323f530712f6212532cf18fa6f /Userland/Applications/FileManager | |
parent | 50de653cc998ac53901f748ac597c1d38e705938 (diff) | |
download | serenity-6e16a5cdfa1b6921185ebb27a41c618f25f269ba.zip |
Applications: Open folder with pre-selected file where appropriate :^)
Diffstat (limited to 'Userland/Applications/FileManager')
-rw-r--r-- | Userland/Applications/FileManager/PropertiesWindow.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/Applications/FileManager/PropertiesWindow.cpp b/Userland/Applications/FileManager/PropertiesWindow.cpp index d29b70d3eb..e59f278d99 100644 --- a/Userland/Applications/FileManager/PropertiesWindow.cpp +++ b/Userland/Applications/FileManager/PropertiesWindow.cpp @@ -113,8 +113,7 @@ PropertiesWindow::PropertiesWindow(const String& path, bool disable_rename, Wind auto properties = Vector<PropertyValuePair>(); properties.append({ "Type:", get_description(m_mode) }); - auto parent_link = URL::create_with_file_protocol(m_parent_path); - parent_link.set_fragment(m_name); + auto parent_link = URL::create_with_file_protocol(m_parent_path, m_name); properties.append(PropertyValuePair { "Location:", path, Optional(parent_link) }); if (S_ISLNK(m_mode)) { @@ -124,7 +123,7 @@ PropertiesWindow::PropertiesWindow(const String& path, bool disable_rename, Wind } else { auto link_directory = LexicalPath(link_destination); VERIFY(link_directory.is_valid()); - auto link_parent = URL::create_with_file_protocol(link_directory.dirname()); + auto link_parent = URL::create_with_file_protocol(link_directory.dirname(), link_directory.basename()); properties.append({ "Link target:", link_destination, Optional(link_parent) }); } } |