mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-13 13:11:41 +00:00
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:
parent
ebb92ad08e
commit
46a2bb5273
|
@ -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…
Reference in a new issue