Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Try to fix Travis build failure
  • Loading branch information
nyalldawson committed May 31, 2017
1 parent 4cdfbad commit af029c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gui/qgsextentgroupbox.cpp
Expand Up @@ -20,6 +20,7 @@
#include "qgscsexception.h"
#include "qgsproject.h"
#include <QMenu>
#include <QAction>

QgsExtentGroupBox::QgsExtentGroupBox( QWidget *parent )
: QgsCollapsibleGroupBox( parent )
Expand Down Expand Up @@ -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 )
Expand Down

0 comments on commit af029c5

Please sign in to comment.