diff options
Diffstat (limited to 'kpdf')
-rw-r--r-- | kpdf/part.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kpdf/part.cpp b/kpdf/part.cpp index f7ad73c9..dee572e6 100644 --- a/kpdf/part.cpp +++ b/kpdf/part.cpp @@ -1078,8 +1078,11 @@ void Part::restoreDocument(TDEConfig* config) void Part::saveDocumentRestoreInfo(TDEConfig* config) { - config->writePathEntry( "URL", url().url() ); - config->writeEntry( "Viewport", m_document->viewport().toString() ); + if ( url().isValid() ) + { + config->writePathEntry( "URL", url().url() ); + config->writeEntry( "Viewport", m_document->viewport().toString() ); + } } /* |