@@ -33,7 +33,7 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer* vl, QgsFeature* thepFeat
33
33
QgsAttributeEditorContext context;
34
34
context.setDistanceArea ( myDa );
35
35
36
- init ( vl, thepFeature, context, parent );
36
+ init ( vl, thepFeature, context );
37
37
38
38
if ( !showDialogButtons )
39
39
mAttributeForm ->hideButtonBox ();
@@ -44,7 +44,7 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer* vl, QgsFeature* thepFeat
44
44
, mHighlight( 0 )
45
45
, mOwnedFeature( featureOwner ? thepFeature : 0 )
46
46
{
47
- init ( vl, thepFeature, context, parent );
47
+ init ( vl, thepFeature, context );
48
48
49
49
if ( !showDialogButtons )
50
50
mAttributeForm ->hideButtonBox ();
@@ -97,12 +97,12 @@ void QgsAttributeDialog::show( bool autoDelete )
97
97
activateWindow ();
98
98
}
99
99
100
- void QgsAttributeDialog::init ( QgsVectorLayer* layer, QgsFeature* feature, const QgsAttributeEditorContext &context, QWidget* parent )
100
+ void QgsAttributeDialog::init ( QgsVectorLayer* layer, QgsFeature* feature, const QgsAttributeEditorContext &context )
101
101
{
102
102
setWindowTitle ( tr ( " %1 - Feature Attributes" ).arg ( layer->name () ) );
103
103
setLayout ( new QGridLayout () );
104
104
layout ()->setMargin ( 0 );
105
- mAttributeForm = new QgsAttributeForm ( layer, *feature, context, parent );
105
+ mAttributeForm = new QgsAttributeForm ( layer, *feature, context, this );
106
106
mAttributeForm ->disconnectButtonBox ();
107
107
layout ()->addWidget ( mAttributeForm );
108
108
QDialogButtonBox* buttonBox = mAttributeForm ->findChild <QDialogButtonBox*>();
0 commit comments