From 02dde1035c250f6af4127fe679404198e1c8c6da Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 1 Jan 2008 16:22:29 +0000 Subject: [PATCH] for now, don't create xml storage files for non-local urls, as the local name will always change svn path=/trunk/KDE/kdegraphics/okular/; revision=755447 --- core/document.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/document.cpp b/core/document.cpp index c7d6425f3..bf7690292 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -486,7 +486,7 @@ ConfigInterface* DocumentPrivate::generatorConfig( GeneratorInfo& info ) void DocumentPrivate::saveDocumentInfo() const { - if ( m_docFileName.isEmpty() ) + if ( m_xmlFileName.isEmpty() ) return; QFile infoFile( m_xmlFileName ); @@ -1089,6 +1089,8 @@ bool Document::openDocument( const QString & docFile, const KUrl& url, const KMi // determine the related "xml document-info" filename d->m_url = url; d->m_docFileName = docFile; + if ( url.isLocalFile() ) + { QString fn = docFile.contains('/') ? docFile.section('/', -1, -1) : docFile; document_size = fileReadTest.size(); fn = QString::number( document_size ) + '.' + fn + ".xml"; @@ -1107,6 +1109,7 @@ bool Document::openDocument( const QString & docFile, const KUrl& url, const KMi } } d->m_xmlFileName = newokularfile; + } } else {