mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
Do not change property widget status if the dialog is rejected
refs #16766
This commit is contained in:
parent
731b57c8a7
commit
4f9e2a5f29
@ -639,16 +639,18 @@ void QgsPropertyOverrideButton::showAssistant()
|
|||||||
connect( buttonBox, &QDialogButtonBox::rejected, dlg, &QDialog::reject );
|
connect( buttonBox, &QDialogButtonBox::rejected, dlg, &QDialog::reject );
|
||||||
connect( buttonBox, &QDialogButtonBox::helpRequested, this, &QgsPropertyOverrideButton::showHelp );
|
connect( buttonBox, &QDialogButtonBox::helpRequested, this, &QgsPropertyOverrideButton::showHelp );
|
||||||
dlg->layout()->addWidget( buttonBox );
|
dlg->layout()->addWidget( buttonBox );
|
||||||
dlg->exec();
|
|
||||||
|
if ( dlg->exec() == QDialog::Accepted )
|
||||||
|
{
|
||||||
|
widget->updateProperty( mProperty );
|
||||||
|
mExpressionString = mProperty.asExpression();
|
||||||
|
mFieldName = mProperty.field();
|
||||||
|
widget->acceptPanel();
|
||||||
|
updateGui();
|
||||||
|
|
||||||
|
emit changed();
|
||||||
|
}
|
||||||
settings.setValue( key, dlg->saveGeometry() );
|
settings.setValue( key, dlg->saveGeometry() );
|
||||||
|
|
||||||
widget->updateProperty( mProperty );
|
|
||||||
mExpressionString = mProperty.asExpression();
|
|
||||||
mFieldName = mProperty.field();
|
|
||||||
widget->acceptPanel();
|
|
||||||
updateGui();
|
|
||||||
|
|
||||||
emit changed();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user