Commit 5da8a986 authored by Pino Toscano's avatar Pino Toscano

invalidate the page filter proxy model less times

svn path=/trunk/KDE/kdegraphics/okular/; revision=710549
parent c70cb99b
......@@ -32,8 +32,6 @@ void PageFilterProxyModel::groupByCurrentPage( bool value )
mGroupByCurrentPage = value;
invalidateFilter();
emit layoutChanged();
}
void PageFilterProxyModel::setCurrentPage( int page )
......@@ -43,9 +41,11 @@ void PageFilterProxyModel::setCurrentPage( int page )
mCurrentPage = page;
invalidateFilter();
// no need to invalidate when we're not showing the current page only
if ( !mGroupByCurrentPage )
return;
emit layoutChanged();
invalidateFilter();
}
bool PageFilterProxyModel::filterAcceptsRow( int row, const QModelIndex &sourceParent ) const
......
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