We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 3b2421d commit 31c456cCopy full SHA for 31c456c
src/gui/qgsmapcanvas.cpp
@@ -1208,12 +1208,10 @@ void QgsMapCanvas::showContextMenu( QgsMapMouseEvent *event )
1208
if ( !mapTool()->populateContextMenuWithEvent( &menu, event ) )
1209
mMapTool->populateContextMenu( &menu );
1210
1211
- if ( menu.isEmpty() ) // menu can be empty after populateContextMenu()
1212
- return;
1213
-
1214
emit contextMenuAboutToShow( &menu, event );
1215
1216
- menu.exec( event->globalPos() );
+ if ( !menu.isEmpty() ) // menu can be empty after populateContextMenu() and contextMenuAboutToShow()
+ menu.exec( event->globalPos() );
1217
}
1218
1219
void QgsMapCanvas::notifyRendererErrors( const QgsMapRendererJob::Errors &errors )
0 commit comments