From 27f624d1f72c4dd3b7f92d8f2a2c2b9ee606bfb8 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 3 Oct 2007 15:03:49 +0000 Subject: [PATCH] check whether the document is open svn path=/trunk/KDE/kdegraphics/okular/; revision=720717 --- core/document.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/document.cpp b/core/document.cpp index ae1b03b83..009683c58 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -1260,6 +1260,10 @@ KXMLGUIClient* Document::guiClient() void Document::closeDocument() { + // check if there's anything to close... + if ( !d->m_generator ) + return; + if ( d->m_fontThread ) { disconnect( d->m_fontThread, 0, this, 0 );