diff --git a/core/document.cpp b/core/document.cpp index d2b4495b1..c6ba68e23 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -301,7 +301,12 @@ void DocumentPrivate::loadDocumentInfo() if ( m_xmlFileName.isEmpty() ) return; - QFile infoFile( m_xmlFileName ); + loadDocumentInfo( m_xmlFileName ); +} + +void DocumentPrivate::loadDocumentInfo( const QString &fileName ) +{ + QFile infoFile( fileName ); if ( !infoFile.exists() || !infoFile.open( QIODevice::ReadOnly ) ) return; diff --git a/core/document_p.h b/core/document_p.h index 6c930db18..5673dc6ac 100644 --- a/core/document_p.h +++ b/core/document_p.h @@ -95,6 +95,7 @@ class DocumentPrivate qulonglong getTotalMemory(); qulonglong getFreeMemory(); void loadDocumentInfo(); + void loadDocumentInfo( const QString &fileName ); void loadViewsInfo( View *view, const QDomElement &e ); void saveViewsInfo( View *view, QDomElement &e ) const; QString giveAbsolutePath( const QString & fileName ) const;