Skip to content

Commit

Permalink
Fix layers cannot be individually deselected in offline editing plugin
Browse files Browse the repository at this point in the history
Fixes #16163
  • Loading branch information
nyalldawson committed Jan 16, 2018
1 parent 30fe991 commit d426a8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/offline_editing/offline_editing_plugin_gui.cpp
Expand Up @@ -53,12 +53,12 @@ QVariant QgsSelectLayerTreeModel::data( const QModelIndex &index, int role ) con
if ( QgsLayerTree::isLayer( node ) )
{
QgsLayerTreeLayer *nodeLayer = QgsLayerTree::toLayer( node );
return nodeLayer->isVisible();
return nodeLayer->isVisible() ? Qt::Checked : Qt::Unchecked;
}
else if ( QgsLayerTree::isGroup( node ) )
{
QgsLayerTreeGroup *nodeGroup = QgsLayerTree::toGroup( node );
return nodeGroup->isVisible();
return nodeGroup->isVisible() ? Qt::Checked : Qt::Unchecked;
}
else
{
Expand Down

0 comments on commit d426a8d

Please sign in to comment.