Skip to content
Permalink
Browse files
only handle context menu event if showing tree widget
  • Loading branch information
etiennesky committed May 20, 2014
1 parent 06c0bd2 commit 7d535b4e4afb13f13a247041017803a1d9ed8694
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgsidentifyresultsdialog.cpp
@@ -905,6 +905,11 @@ void QgsIdentifyResultsDialog::itemClicked( QTreeWidgetItem *item, int column )
void QgsIdentifyResultsDialog::contextMenuEvent( QContextMenuEvent* event )
{
QgsDebugMsg( "Entered" );

// only handle context menu event if showing tree widget
if ( tabWidget->currentIndex() != 0 )
return;

QTreeWidgetItem *item = lstResults->itemAt( lstResults->viewport()->mapFrom( this, event->pos() ) );
// if the user clicked below the end of the attribute list, just return
if ( !item )

0 comments on commit 7d535b4

Please sign in to comment.