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
remotes/origin/old/work/record-presentation
Pino Toscano 17 years ago
parent ebb92ad08e
commit 46a2bb5273
  1. 4
      core/document.cpp

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

Loading…
Cancel
Save