Skip to content

Commit

Permalink
Let user change form layout in fields properties if .ui is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 7, 2014
1 parent cfe6270 commit 6252943
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgsfieldsproperties.cpp
Expand Up @@ -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() );

Expand Down

0 comments on commit 6252943

Please sign in to comment.