Skip to content
Permalink
Browse files
Let user change form layout in fields properties if .ui is not empty
  • Loading branch information
m-kuhn committed Aug 7, 2014
1 parent cfe6270 commit 6252943
Showing 1 changed file with 2 additions and 1 deletion.
@@ -768,7 +768,8 @@ void QgsFieldsProperties::apply()
}

mLayer->setEditorLayout(( QgsVectorLayer::EditorLayout ) mEditorLayoutComboBox->currentIndex() );
mLayer->setEditForm( leEditForm->text() );
if ( mEditorLayoutComboBox->currentIndex() == QgsVectorLayer::UiFileLayout )
mLayer->setEditForm( leEditForm->text() );
mLayer->setEditFormInit( leEditFormInit->text() );
mLayer->setFeatureFormSuppress(( QgsVectorLayer::FeatureFormSuppress )mFormSuppressCmbBx->currentIndex() );

0 comments on commit 6252943

Please sign in to comment.