Skip to content

Commit 8c4d810

Browse files
committedDec 14, 2015
Fixes #13984 custom python init function config is lost in master
1 parent 36267f5 commit 8c4d810

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgseditformconfig.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ void QgsEditFormConfig::readXml( const QDomNode& node )
140140
if ( dotPos >= 0 ) // It's a module
141141
{
142142
setInitCodeSource( QgsEditFormConfig::CodeSourceDialog );
143-
setInitFunction( mInitFunction.mid( dotPos + 1 ) );
144143
setInitCode( QString( "from %1 import %2\n" ).arg( mInitFunction.left( dotPos ), mInitFunction.mid( dotPos + 1 ) ) );
144+
setInitFunction( mInitFunction.mid( dotPos + 1 ) );
145145
}
146146

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

0 commit comments

Comments
 (0)
Failed to load comments.