Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 ad8093e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/layertree/qgslayertreemodellegendnode.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit ad8093e

Please sign in to comment.