Skip to content

Commit

Permalink
Only restore geometry for non custom attribute forms
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jul 16, 2013
1 parent b9ada4c commit 2fa7736
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/gui/qgsattributedialog.cpp
Expand Up @@ -433,7 +433,11 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
QgsPythonRunner::run( expr );
}

restoreGeometry();
// Only restore the geometry of the dialog if it's not a custom one.
if (!vl->editorLayout() == QgsVectorLayer::UiFileLayout)
{
restoreGeometry();
}
}


Expand All @@ -450,7 +454,11 @@ QgsAttributeDialog::~QgsAttributeDialog()
delete mFeature;
}

saveGeometry();
// Only save the geometry of the dialog if it's not a custom one.
if (!mLayer->editorLayout() == QgsVectorLayer::UiFileLayout)
{
saveGeometry();
}

if ( mDialog )
{
Expand Down

0 comments on commit 2fa7736

Please sign in to comment.