Skip to content
Permalink
Browse files
[composer] Ensure url is correctly loaded for html items on project l…
…oad (fix #9374)
  • Loading branch information
nyalldawson committed Feb 1, 2014
1 parent a9f4596 commit 9ba28b386ffe182044a991ef5f24054dbb1c4c22
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/core/composer/qgscomposerhtml.cpp
@@ -133,10 +133,18 @@ bool QgsComposerHtml::writeXML( QDomElement& elem, QDomDocument & doc, bool igno
bool QgsComposerHtml::readXML( const QDomElement& itemElem, const QDomDocument& doc, bool ignoreFrames )
{
deleteFrames();

//first create the frames
if ( !_readXML( itemElem, doc, ignoreFrames ) )
{
return false;
}

//then load the set url
QString urlString = itemElem.attribute( "url" );
if ( !urlString.isEmpty() )
{
setUrl( QUrl( urlString ) );
}
return _readXML( itemElem, doc, ignoreFrames );
return true;
}

0 comments on commit 9ba28b3

Please sign in to comment.