mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
parent
232fb842fa
commit
0783e8fc1d
@ -689,7 +689,7 @@ QgsAttributeDialog* QgisAppInterface::getFeatureForm( QgsVectorLayer *l, QgsFeat
|
|||||||
QgsAttributeEditorContext context;
|
QgsAttributeEditorContext context;
|
||||||
context.setDistanceArea( myDa );
|
context.setDistanceArea( myDa );
|
||||||
context.setVectorLayerTools( qgis->vectorLayerTools() );
|
context.setVectorLayerTools( qgis->vectorLayerTools() );
|
||||||
QgsAttributeDialog *dialog = new QgsAttributeDialog( l, &feature, false, nullptr, true, context );
|
QgsAttributeDialog *dialog = new QgsAttributeDialog( l, &feature, false, qgis, true, context );
|
||||||
if ( !feature.isValid() )
|
if ( !feature.isValid() )
|
||||||
{
|
{
|
||||||
dialog->setIsAddDialog( true );
|
dialog->setIsAddDialog( true );
|
||||||
|
@ -61,7 +61,8 @@ QgsAttributeDialog *QgsFeatureAction::newDialog( bool cloneFeature )
|
|||||||
context.setVectorLayerTools( QgisApp::instance()->vectorLayerTools() );
|
context.setVectorLayerTools( QgisApp::instance()->vectorLayerTools() );
|
||||||
context.setFormMode( QgsAttributeEditorContext::StandaloneDialog );
|
context.setFormMode( QgsAttributeEditorContext::StandaloneDialog );
|
||||||
|
|
||||||
QgsAttributeDialog *dialog = new QgsAttributeDialog( mLayer, f, cloneFeature, nullptr, true, context );
|
QgsAttributeDialog *dialog = new QgsAttributeDialog( mLayer, f, cloneFeature, parentWidget(), true, context );
|
||||||
|
dialog->setWindowFlags( dialog->windowFlags() | Qt::WindowStaysOnTopHint );
|
||||||
|
|
||||||
if ( mLayer->actions()->size() > 0 )
|
if ( mLayer->actions()->size() > 0 )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user