From 46a2bb5273fca4c1a14df14f411cbc4139524ca4 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sat, 3 Jan 2009 10:17:15 +0000 Subject: [PATCH] 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 --- core/document.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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;