Skip to content
Permalink
Browse files

Merge pull request #2579 from elpaso/bugfix-13984

Fixes #13984 custom python init function config is lost in master
  • Loading branch information
elpaso committed Dec 14, 2015
2 parents 36267f5 + 8c4d810 commit ca5707ddeba8773aa5a91608b1d317a44f3f9bd1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgseditformconfig.cpp
@@ -140,8 +140,8 @@ void QgsEditFormConfig::readXml( const QDomNode& node )
if ( dotPos >= 0 ) // It's a module
{
setInitCodeSource( QgsEditFormConfig::CodeSourceDialog );
setInitFunction( mInitFunction.mid( dotPos + 1 ) );
setInitCode( QString( "from %1 import %2\n" ).arg( mInitFunction.left( dotPos ), mInitFunction.mid( dotPos + 1 ) ) );
setInitFunction( mInitFunction.mid( dotPos + 1 ) );
}

QDomNode editFormInitFilePathNode = node.namedItem( "editforminitfilepath" );

0 comments on commit ca5707d

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