Skip to content

Commit 7d535b4

Browse files
committed
only handle context menu event if showing tree widget
1 parent 06c0bd2 commit 7d535b4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/app/qgsidentifyresultsdialog.cpp‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,11 @@ void QgsIdentifyResultsDialog::itemClicked( QTreeWidgetItem *item, int column )
905905
void QgsIdentifyResultsDialog::contextMenuEvent( QContextMenuEvent* event )
906906
{
907907
QgsDebugMsg( "Entered" );
908+
909+
// only handle context menu event if showing tree widget
910+
if ( tabWidget->currentIndex() != 0 )
911+
return;
912+
908913
QTreeWidgetItem *item = lstResults->itemAt( lstResults->viewport()->mapFrom( this, event->pos() ) );
909914
// if the user clicked below the end of the attribute list, just return
910915
if ( !item )

0 commit comments

Comments
 (0)