Skip to content
Permalink
Browse files

Fix incorrect restore of ui form paths for layers when no ui form was…

… set

Prevents an empty ui form path being set to the folder path containing the
project when a project is loaded

(cherry-picked from ad93ccc)
  • Loading branch information
nyalldawson committed Jul 27, 2018
1 parent 067ee2b commit 349aa2172d587ff5c7f1bf7098f30b7a3abb9b92
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/qgseditformconfig.cpp
@@ -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" ) );

0 comments on commit 349aa21

Please sign in to comment.
You can’t perform that action at this time.