Skip to content

Commit

Permalink
Automatically switch editor layout when assigning .ui file
Browse files Browse the repository at this point in the history
Fix #7286
  • Loading branch information
m-kuhn committed Jul 24, 2014
1 parent 6e007bf commit f87bddf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -2589,6 +2589,14 @@ QString QgsVectorLayer::editForm()

void QgsVectorLayer::setEditForm( QString ui )
{
if ( ui.isEmpty() || ui.isNull() )
{
setEditorLayout( GeneratedLayout );
}
else
{
setEditorLayout( UiFileLayout );
}
mEditForm = ui;
}

Expand Down

0 comments on commit f87bddf

Please sign in to comment.