diff options
author | Slávek Banko <[email protected]> | 2013-11-27 18:33:15 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-11-27 19:30:18 +0100 |
commit | ba5469bc7a14cc388b4f690c7ef658812d23deb0 (patch) | |
tree | 0e4c7ff51809f438ddd313a14f1a55fba947c741 /kpdf | |
parent | fb2bb6ba87af8599830bb004f6e2cf82a92d1f28 (diff) | |
download | tdegraphics-ba5469bc7a14cc388b4f690c7ef658812d23deb0.tar.gz tdegraphics-ba5469bc7a14cc388b4f690c7ef658812d23deb0.zip |
Fix kpdf crash while closing session
This resolves Bug 1728
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() ); + } } /* |