clear TOC and document info when closing a textdocument-based document

svn path=/trunk/KDE/kdegraphics/okular/; revision=798886
remotes/origin/KDE/4.1
Pino Toscano 18 years ago
parent f697cdf007
commit 890367943b
  1. 3
      core/textdocumentgenerator.cpp

@ -289,6 +289,9 @@ bool TextDocumentGenerator::doCloseDocument()
d->mLinkPositions.clear();
d->mLinkInfos.clear();
d->mAnnotationInfos.clear();
// do not use clear() for the following two, otherwise they change type
d->mDocumentInfo = Okular::DocumentInfo();
d->mDocumentSynopsis = Okular::DocumentSynopsis();
return true;
}

Loading…
Cancel
Save