@@ -275,7 +275,7 @@ void QgsRelationReferenceWidget::mapToolDeactivated()
275
275
{
276
276
if ( mWindowWidget )
277
277
{
278
- mWindowWidget ->show ();
278
+ mWindowWidget ->raise ();
279
279
}
280
280
281
281
if ( mMessageBar && mMessageBarItem )
@@ -352,9 +352,9 @@ void QgsRelationReferenceWidget::setAllowMapIdentification( bool allowMapIdentif
352
352
mAllowMapIdentification = allowMapIdentification;
353
353
}
354
354
355
- void QgsRelationReferenceWidget::setOpenFormButtonVisible (bool openFormButtonVisible)
355
+ void QgsRelationReferenceWidget::setOpenFormButtonVisible ( bool openFormButtonVisible )
356
356
{
357
- mOpenFormButton ->setVisible (openFormButtonVisible);
357
+ mOpenFormButton ->setVisible ( openFormButtonVisible );
358
358
mOpenFormButtonVisible = openFormButtonVisible;
359
359
}
360
360
@@ -518,9 +518,11 @@ void QgsRelationReferenceWidget::mapIdentification()
518
518
return ;
519
519
520
520
mMapTool = new QgsMapToolIdentifyFeature ( mCanvas , mReferencedLayer );
521
+ mMapTool ->setAction ( mMapIdentificationAction );
521
522
mCanvas ->setMapTool ( mMapTool );
522
523
mWindowWidget = window ();
523
- mWindowWidget ->hide ();
524
+ mCanvas ->raise ();
525
+
524
526
connect ( mMapTool , SIGNAL ( featureIdentified ( QgsFeature ) ), this , SLOT ( featureIdentified ( const QgsFeature ) ) );
525
527
connect ( mMapTool , SIGNAL ( deactivated () ), this , SLOT ( mapToolDeactivated () ) );
526
528
@@ -580,5 +582,5 @@ void QgsRelationReferenceWidget::featureIdentified( const QgsFeature& feature )
580
582
}
581
583
582
584
if ( mWindowWidget )
583
- mWindowWidget ->show ();
585
+ mWindowWidget ->raise ();
584
586
}
0 commit comments