Commit 6e09bd85 authored by Stephan Kulow's avatar Stephan Kulow
Browse files

they must be really smaller (CID 3220)

svn path=/trunk/KDE/kdebase/apps/; revision=642214
parent 95c7c9cd
......@@ -66,7 +66,7 @@ void DolphinSortFilterProxyModel::setSorting(DolphinView::Sorting sorting)
{
// Update the sort column by mapping DolpginView::Sorting to
// KDirModel::ModelColumns. We will keep the sortOrder.
Q_ASSERT(static_cast<int>(sorting) >= 0 && static_cast<int>(sorting) <= dolphinMapSize);
Q_ASSERT(static_cast<int>(sorting) >= 0 && static_cast<int>(sorting) < dolphinMapSize);
sort(dolphinViewToDirModelColumn[static_cast<int>(sorting)],
m_sortOrder );
}
......@@ -81,7 +81,7 @@ void DolphinSortFilterProxyModel::sort(int column, Qt::SortOrder sortOrder)
{
m_sortColumn = column;
m_sortOrder = sortOrder;
m_sorting = (column >= 0) && (column <= dolphinMapSize) ?
m_sorting = (column >= 0) && (column < dolphinMapSize) ?
dirModelColumnToDolphinView[column] :
DolphinView::SortByName;
QSortFilterProxyModel::sort(column, sortOrder);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment