mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 00:38:48 +00:00
GFilePicker: Add a "new directory" button.
This commit is contained in:
parent
7c6784f50c
commit
e6443649cb
Notes:
sideshowbarker
2024-07-19 14:11:12 +09:00
Author: https://github.com/awesomekling
Commit: e6443649cb
2 changed files with 21 additions and 2 deletions
LibGUI
|
@ -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