mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-02 14:14:10 +00:00
delete the annotation item when the annotation it represent was removed
svn path=/trunk/KDE/kdegraphics/okular/; revision=752761
This commit is contained in:
parent
a02131d6a9
commit
6d68021b61
|
@ -171,6 +171,7 @@ void AnnotationModelPrivate::notifyPageChanged( int page, int flags )
|
|||
if ( !found )
|
||||
{
|
||||
q->beginRemoveRows( indexForItem( annItem ), i - 1, i - 1 );
|
||||
delete annItem->children.at( i - 1 );
|
||||
annItem->children.removeAt( i - 1 );
|
||||
q->endRemoveRows();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue