Skip to content

Commit 8f35a27

Browse files
author
Sandro Santilli
committedDec 19, 2014
Fix flags for invalid LayerTreeModel index
.. bug reported by ModelTester
1 parent 78ffe02 commit 8f35a27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/layertree/qgslayertreemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ Qt::ItemFlags QgsLayerTreeModel::flags( const QModelIndex& index ) const
301301
{
302302
if ( !index.isValid() )
303303
{
304-
Qt::ItemFlags rootFlags = Qt::ItemIsEnabled | Qt::ItemIsSelectable;
304+
Qt::ItemFlags rootFlags = 0;
305305
if ( testFlag( AllowNodeReorder ) )
306306
rootFlags |= Qt::ItemIsDropEnabled;
307307
return rootFlags;

0 commit comments

Comments
 (0)