Skip to content

Commit 8561b45

Browse files
committed
Minor fixes for select referenced feature map tool
* Message on the message bar correctly formatted * Esc button to deactivate also works without first clicking on the canvas
1 parent c9ff77f commit 8561b45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gui/editorwidgets/qgsrelationreferencewidget.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,14 +586,15 @@ void QgsRelationReferenceWidget::mapIdentification()
586586

587587
mCanvas->window()->raise();
588588
mCanvas->activateWindow();
589+
mCanvas->setFocus();
589590

590591
connect( mMapTool, SIGNAL( featureIdentified( QgsFeature ) ), this, SLOT( featureIdentified( const QgsFeature ) ) );
591592
connect( mMapTool, SIGNAL( deactivated() ), this, SLOT( mapToolDeactivated() ) );
592593

593594
if ( mMessageBar )
594595
{
595596
QString title = QString( "Relation %1 for %2." ).arg( mRelationName ).arg( mReferencingLayer->name() );
596-
QString msg = tr( "Identify a feature of %1 to be associated. Press <ESC> to cancel." ).arg( mReferencedLayer->name() );
597+
QString msg = tr( "Identify a feature of %1 to be associated. Press &lt;ESC&gt; to cancel." ).arg( mReferencedLayer->name() );
597598
mMessageBarItem = QgsMessageBar::createMessage( title, msg, this );
598599
mMessageBar->pushItem( mMessageBarItem );
599600
}

0 commit comments

Comments
 (0)