diff --git a/core/document.cpp b/core/document.cpp index 0516e07f3..a02d8cb30 100644 --- a/core/document.cpp +++ b/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;