Skip to content
Permalink
Browse files

fix #7770

  • Loading branch information
jef-n committed May 6, 2013
1 parent 3875419 commit d1981881af9ebf9ebd9945f7403ac1b7266e90dd
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/wms/qgswmssourceselect.cpp
@@ -370,7 +370,7 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )

lstTilesets->clearContents();
lstTilesets->setRowCount( rows );
lstTilesets->setSortingEnabled( true );
lstTilesets->setSortingEnabled( false );

int row = 0;
foreach ( const QgsWmtsTileLayer &l, mTileLayers )
@@ -383,7 +383,6 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )
{
QTableWidgetItem *item = new QTableWidgetItem( l.identifier );
item->setData( Qt::UserRole + 0, l.identifier );

item->setData( Qt::UserRole + 1, format );
item->setData( Qt::UserRole + 2, style.identifier );
item->setData( Qt::UserRole + 3, setLink.tileMatrixSet );
@@ -416,6 +415,7 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )
}

lstTilesets->resizeColumnsToContents();
lstTilesets->setSortingEnabled( true );
lstTilesets->sortByColumn( 0, Qt::AscendingOrder );
}

0 comments on commit d198188

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