Skip to content
Permalink
Browse files

Do not use partially checked state of legend nodes when layer is not …

…visible

This is slightly confusing, moreover in some styles the items are not immediately
updated, producing a weird effect when hovering mouse over legend nodes.
http://www.youtube.com/watch?v=HNDE1Xp5UZA&feature=youtu.be
  • Loading branch information
wonder-sk committed Sep 10, 2014
1 parent e96ff4a commit ad8093e182e0b9fb547ac573f8f3d1d49f1fb101
Showing with 0 additions and 3 deletions.
  1. +0 −3 src/core/layertree/qgslayertreemodellegendnode.cpp
@@ -164,9 +164,6 @@ QVariant QgsSymbolV2LegendNode::data( int role ) const
if ( !mItem.isCheckable() )
return QVariant();

if ( !mLayerNode->isVisible() )
return Qt::PartiallyChecked;

QgsVectorLayer* vlayer = qobject_cast<QgsVectorLayer*>( mLayerNode->layer() );
if ( !vlayer || !vlayer->rendererV2() )
return QVariant();

0 comments on commit ad8093e

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