mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 14:45:07 +00:00
LibGUI+DevTools+Applications: Use ModelIndex::data() in many places
This way you don't have to keep track of which model it came from.
This commit is contained in:
parent
96f98b1fc9
commit
9102b624ac
18 changed files with 56 additions and 57 deletions
|
@ -326,7 +326,7 @@ void DirectoryView::update_statusbar()
|
|||
current_view().selection().for_each_index([&](auto& index) {
|
||||
auto& model = *current_view().model();
|
||||
auto size_index = model.index(index.row(), GUI::FileSystemModel::Column::Size, model.parent_index(index));
|
||||
auto file_size = model.data(size_index).to_i32();
|
||||
auto file_size = size_index.data().to_i32();
|
||||
selected_byte_count += file_size;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue