Skip to content

Commit

Permalink
[composer] Ensure url is correctly loaded for html items on project l…
Browse files Browse the repository at this point in the history
…oad (fix #9374)
  • Loading branch information
nyalldawson committed Feb 1, 2014
1 parent a9f4596 commit 9ba28b3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/core/composer/qgscomposerhtml.cpp
Expand Up @@ -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.