Skip to content
Permalink
Browse files

do not raise canvas but window (fix hiding message bar)

  • Loading branch information
3nids committed Sep 17, 2014
1 parent 9ebb69e commit f8228a2b2fc030aaa1a60b3713cd02b24981259d
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/gui/editorwidgets/qgsrelationreferencewidget.cpp
@@ -137,6 +137,7 @@ QgsRelationReferenceWidget::QgsRelationReferenceWidget( QWidget* parent )
QgsRelationReferenceWidget::~QgsRelationReferenceWidget()
{
deleteHighlight();
unsetMapTool();
delete mMapTool;
}

@@ -517,9 +518,8 @@ void QgsRelationReferenceWidget::mapIdentification()
mCanvas->setMapTool( mMapTool );

mWindowWidget = window();
connect( mWindowWidget, SIGNAL( destroyed() ), this, SLOT( unsetMapTool() ) );

mCanvas->raise();
mCanvas->window()->raise();
mCanvas->activateWindow();

connect( mMapTool, SIGNAL( featureIdentified( QgsFeature ) ), this, SLOT( featureIdentified( const QgsFeature ) ) );
@@ -529,7 +529,7 @@ void QgsRelationReferenceWidget::mapIdentification()
{
QString title = QString( "Relation %1 for %2." ).arg( mRelationName ).arg( mReferencingLayer->name() );
QString msg = tr( "Identify a feature of %1 to be associated. Press <ESC> to cancel." ).arg( mReferencedLayer->name() );
mMessageBarItem = QgsMessageBar::createMessage( title, msg );
mMessageBarItem = QgsMessageBar::createMessage( title, msg, this );
mMessageBar->pushItem( mMessageBarItem );
}
}

0 comments on commit f8228a2

Please sign in to comment.
You can’t perform that action at this time.