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
This commit is contained in:
Pino Toscano 2007-07-04 09:28:31 +00:00
parent 05c01834c5
commit e9b9d78faa

View file

@ -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