Skip to content

Commit

Permalink
Fix incorrect restore of ui form paths for layers when no ui form was…
Browse files Browse the repository at this point in the history
… set

Prevents an empty ui form path being set to the folder path containing the
project when a project is loaded
  • Loading branch information
nyalldawson committed Aug 1, 2018
1 parent edec245 commit ad93ccc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/qgseditformconfig.cpp
Expand Up @@ -275,7 +275,8 @@ void QgsEditFormConfig::readXml( const QDomNode &node, QgsReadWriteContext &cont
if ( !editFormNode.isNull() )
{
QDomElement e = editFormNode.toElement();
setUiForm( context.pathResolver().readPath( e.text() ) );
if ( !e.text().isEmpty() )
setUiForm( context.pathResolver().readPath( e.text() ) );
}

QDomNode editFormInitNode = node.namedItem( QStringLiteral( "editforminit" ) );
Expand Down

0 comments on commit ad93ccc

Please sign in to comment.