mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-12 20:51:17 +00:00
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:
parent
98ed679e0e
commit
034e8f9299
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue