Skip to content
Permalink
Browse files

Try to fix Travis build failure

  • Loading branch information
nyalldawson committed May 31, 2017
1 parent 4cdfbad commit af029c5ce51c5eea3299e6b504dd294273f707a0
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/gui/qgsextentgroupbox.cpp
@@ -20,6 +20,7 @@
#include "qgscsexception.h"
#include "qgsproject.h"
#include <QMenu>
#include <QAction>

QgsExtentGroupBox::QgsExtentGroupBox( QWidget *parent )
: QgsCollapsibleGroupBox( parent )
@@ -162,8 +163,9 @@ void QgsExtentGroupBox::layerMenuAboutToShow()
for ( int i = 0; i < mMapLayerModel->rowCount(); ++i )
{
QModelIndex index = mMapLayerModel->index( i, 0 );
QAction *act = new QAction( qvariant_cast<QIcon>( mMapLayerModel->data( index, Qt::DecorationRole ) ),
mMapLayerModel->data( index, Qt::DisplayRole ).toString() );
QIcon icon = qvariant_cast<QIcon>( mMapLayerModel->data( index, Qt::DecorationRole ) );
QString text = mMapLayerModel->data( index, Qt::DisplayRole ).toString();
QAction *act = new QAction( icon, text, mLayerMenu );
act->setToolTip( mMapLayerModel->data( index, Qt::ToolTipRole ).toString() );
QString layerId = mMapLayerModel->data( index, QgsMapLayerModel::LayerIdRole ).toString();
if ( mExtentState == ProjectLayerExtent && mExtentLayerId == layerId )

0 comments on commit af029c5

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