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 625294371d87f4a59c25d73b7e1833d8d7695b73
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgsfieldsproperties.cpp
@@ -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.
You can’t perform that action at this time.