Skip to content
Permalink
Browse files

Automatically switch editor layout when assigning .ui file

Fix #7286
  • Loading branch information
m-kuhn committed Jul 24, 2014
1 parent 6e007bf commit f87bddf834557d91e42307d9deb9faf85e662c75
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/core/qgsvectorlayer.cpp
@@ -2589,6 +2589,14 @@ QString QgsVectorLayer::editForm()

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

0 comments on commit f87bddf

Please sign in to comment.
You can’t perform that action at this time.