Skip to content
Permalink
Browse files

Fix flags for invalid LayerTreeModel index

.. bug reported by ModelTester
  • Loading branch information
Sandro Santilli
Sandro Santilli committed Dec 19, 2014
1 parent 78ffe02 commit 8f35a27de321ec8b7e7d9bd5136adcc56cebe054
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/layertree/qgslayertreemodel.cpp
@@ -301,7 +301,7 @@ Qt::ItemFlags QgsLayerTreeModel::flags( const QModelIndex& index ) const
{
if ( !index.isValid() )
{
Qt::ItemFlags rootFlags = Qt::ItemIsEnabled | Qt::ItemIsSelectable;
Qt::ItemFlags rootFlags = 0;
if ( testFlag( AllowNodeReorder ) )
rootFlags |= Qt::ItemIsDropEnabled;
return rootFlags;

0 comments on commit 8f35a27

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