When the loaded document is empty, consider its loading as failed.

(Added a TODO for a proper UI message.)
BUG: 179447

svn path=/trunk/KDE/kdegraphics/okular/; revision=904821
This commit is contained in:
Pino Toscano 2009-01-03 10:17:15 +00:00
parent ebb92ad08e
commit 46a2bb5273

View file

@ -680,6 +680,10 @@ bool DocumentPrivate::openDocumentInternal( const KService::Ptr& offer, bool iss
m_pagesVector.clear();
delete m_tempFile;
m_tempFile = 0;
// TODO: emit a message telling the document is empty
openOk = false;
}
return openOk;