Commit 6d68021b authored by Pino Toscano's avatar Pino Toscano

delete the annotation item when the annotation it represent was removed

svn path=/trunk/KDE/kdegraphics/okular/; revision=752761
parent a02131d6
......@@ -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();
}
......
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