mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix flags for invalid LayerTreeModel index
.. bug reported by ModelTester
This commit is contained in:
parent
78ffe02ef8
commit
8f35a27de3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user