mirror of
https://github.com/RGBCube/serenity
synced 2025-07-05 07:07:34 +00:00
GFilePicker: Add a "new directory" button.
This commit is contained in:
parent
7c6784f50c
commit
e6443649cb
2 changed files with 21 additions and 2 deletions
|
@ -30,7 +30,7 @@ GModelIndex GSortingProxyModel::map_to_target(const GModelIndex& index) const
|
|||
{
|
||||
if (!index.is_valid())
|
||||
return { };
|
||||
if (index.row() >= row_count() || index.column() >= column_count())
|
||||
if (index.row() >= m_row_mappings.size() || index.column() >= column_count())
|
||||
return { };
|
||||
return target().index(m_row_mappings[index.row()], index.column());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue