mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-24 10:25:36 +00:00
don't crash when trying to mapping an invalid proxy index in the group proxy model
svn path=/trunk/KDE/kdegraphics/okular/; revision=732110
This commit is contained in:
parent
b66872679e
commit
616d587c2f
|
@ -137,6 +137,9 @@ QModelIndex PageGroupProxyModel::mapFromSource( const QModelIndex &sourceIndex )
|
|||
|
||||
QModelIndex PageGroupProxyModel::mapToSource( const QModelIndex &proxyIndex ) const
|
||||
{
|
||||
if ( !proxyIndex.isValid() )
|
||||
return QModelIndex();
|
||||
|
||||
if ( mGroupByPage ) {
|
||||
if ( proxyIndex.internalId() == 0 ) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue