Skip to content
Permalink
Browse files

Only restore geometry for non custom attribute forms

  • Loading branch information
NathanW2 committed Jul 16, 2013
1 parent b9ada4c commit 2fa7736272820e20110efdb982112db5c50f5122
Showing with 10 additions and 2 deletions.
  1. +10 −2 src/gui/qgsattributedialog.cpp
@@ -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();
}
}


@@ -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 )
{

0 comments on commit 2fa7736

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