mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
don't overrun the array (CID 3278)
svn path=/trunk/KDE/kdebase/apps/; revision=642471
This commit is contained in:
parent
27b9f6aa12
commit
cd4b064fb2
|
@ -89,7 +89,7 @@ void DolphinSortFilterProxyModel::sort(int column, Qt::SortOrder sortOrder)
|
||||||
|
|
||||||
DolphinView::Sorting DolphinSortFilterProxyModel::sortingForColumn(int column)
|
DolphinView::Sorting DolphinSortFilterProxyModel::sortingForColumn(int column)
|
||||||
{
|
{
|
||||||
if ((column >= 0) && (column <= dolphinMapSize)) {
|
if ((column >= 0) && (column < dolphinMapSize)) {
|
||||||
return dirModelColumnToDolphinView[column];
|
return dirModelColumnToDolphinView[column];
|
||||||
}
|
}
|
||||||
return DolphinView::SortByName;
|
return DolphinView::SortByName;
|
||||||
|
|
Loading…
Reference in a new issue