Skip to content

Commit

Permalink
fix #7770
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed May 6, 2013
1 parent 3875419 commit d198188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/wms/qgswmssourceselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand All @@ -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 );
Expand Down Expand Up @@ -416,6 +415,7 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )
}

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

Expand Down

0 comments on commit d198188

Please sign in to comment.