Skip to content

Commit

Permalink
Don't allow double click editing of legend nodes when auto update mod…
Browse files Browse the repository at this point in the history
…e is enabled
  • Loading branch information
nyalldawson committed Apr 24, 2020
1 parent 6caa62a commit 2cdd2ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/layout/qgslayoutlegendwidget.cpp
Expand Up @@ -1298,6 +1298,9 @@ void QgsLayoutLegendWidget::mItemTreeView_doubleClicked( const QModelIndex &idx
return;
}

if ( mLegend->autoUpdateModel() )
return;

QgsLayerTreeModel *model = mItemTreeView->layerTreeModel();
QgsLayerTreeNode *currentNode = model->index2node( idx );
QgsLayerTreeModelLegendNode *legendNode = model->index2legendNode( idx );
Expand Down

0 comments on commit 2cdd2ee

Please sign in to comment.