summaryrefslogtreecommitdiff
path: root/Applications/FileManager/DirectoryTableView.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-03 00:40:50 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-03 00:40:50 +0100
commit7c06431ff7682b42c9e91a8ea27f54f73c7c28f8 (patch)
treee568a61473dd90b39317cb5c22382ca2e0f8b97c /Applications/FileManager/DirectoryTableView.cpp
parentd94abc4f8194dbd285202a2c875212ed57a08196 (diff)
downloadserenity-7c06431ff7682b42c9e91a8ea27f54f73c7c28f8.zip
FileManager: Canonicalize paths when opening them.
Diffstat (limited to 'Applications/FileManager/DirectoryTableView.cpp')
-rw-r--r--Applications/FileManager/DirectoryTableView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/FileManager/DirectoryTableView.cpp b/Applications/FileManager/DirectoryTableView.cpp
index f689a99ff4..4e116a1981 100644
--- a/Applications/FileManager/DirectoryTableView.cpp
+++ b/Applications/FileManager/DirectoryTableView.cpp
@@ -37,5 +37,5 @@ void DirectoryTableView::set_status_message(const String& message)
void DirectoryTableView::open_parent_directory()
{
- model().open("..");
+ model().open(String::format("%s/..", model().path().characters()));
}