diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-13 16:07:58 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-13 20:18:11 +0200 |
commit | 4088beb8eb6b1879bd1e0291d356cdf82eaa1d8c (patch) | |
tree | 23b9957e4fc20fcfd65ae1ba2dd7d3c72fe8ab80 /Applications/FileManager/DirectoryView.cpp | |
parent | fe19cf0ff2b04b5f442706a96aa6974488c9cd6c (diff) | |
download | serenity-4088beb8eb6b1879bd1e0291d356cdf82eaa1d8c.zip |
LibGUI: Remove Model::sibling() since it's the same as index()
... I'm not sure what the idea was here, but since these functions do
the same thing, let's only have index().
Diffstat (limited to 'Applications/FileManager/DirectoryView.cpp')
-rw-r--r-- | Applications/FileManager/DirectoryView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/FileManager/DirectoryView.cpp b/Applications/FileManager/DirectoryView.cpp index 2226ded8bc..a48a9ff8a1 100644 --- a/Applications/FileManager/DirectoryView.cpp +++ b/Applications/FileManager/DirectoryView.cpp @@ -325,7 +325,7 @@ void DirectoryView::update_statusbar() current_view().selection().for_each_index([&](auto& index) { auto& model = *current_view().model(); - auto size_index = model.sibling(index.row(), GUI::FileSystemModel::Column::Size, model.parent_index(index)); + auto size_index = model.index(index.row(), GUI::FileSystemModel::Column::Size, model.parent_index(index)); auto file_size = model.data(size_index).to_i32(); selected_byte_count += file_size; }); |