Map the index through the author proxy model as well.

This makes the context menu working again, thanks Elias P. for reporting that!

svn path=/trunk/KDE/kdegraphics/okular/; revision=748887
This commit is contained in:
Pino Toscano 2007-12-15 20:39:01 +00:00
parent 98ed679e0e
commit 034e8f9299

View file

@ -217,7 +217,8 @@ void Reviews::contextMenuRequested( const QPoint &pos )
if ( !index.isValid() )
return;
const QModelIndex filterIndex = m_groupProxy->mapToSource( index );
const QModelIndex authorIndex = m_authorProxy->mapToSource( index );
const QModelIndex filterIndex = m_groupProxy->mapToSource( authorIndex );
const QModelIndex annotIndex = m_filterProxy->mapToSource( filterIndex );
Okular::Annotation *annotation = m_model->annotationForIndex( annotIndex );