GFilePicker: Add a "new directory" button.

This commit is contained in:
Andreas Kling 2019-05-09 18:45:33 +02:00
parent 7c6784f50c
commit e6443649cb
Notes: sideshowbarker 2024-07-19 14:11:12 +09:00
2 changed files with 21 additions and 2 deletions

View file

@ -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());
}