Skip to content
Permalink
Browse files

Fix layers cannot be individually deselected in offline editing plugin

Fixes #16163
  • Loading branch information
nyalldawson committed Jan 16, 2018
1 parent 30fe991 commit d426a8db84322c8135ae89c0a46cb0cbf0129ad2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/plugins/offline_editing/offline_editing_plugin_gui.cpp
@@ -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
{

0 comments on commit d426a8d

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