acutally save the document information *before* closing the document, otherwise we run into troubles if we access to anything the generator provided

svn path=/trunk/KDE/kdegraphics/okular/; revision=683143
remotes/origin/KDE/4.0
Pino Toscano 19 years ago
parent 05c01834c5
commit e9b9d78faa
  1. 2
      core/document.cpp

@ -962,8 +962,8 @@ void Document::closeDocument()
// close the current document and save document info if a document is still opened
if ( d->m_generator && d->m_pagesVector.size() > 0 )
{
d->m_generator->closeDocument();
d->saveDocumentInfo();
d->m_generator->closeDocument();
}
// stop timers

Loading…
Cancel
Save