Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow editing newly added diagram expression attributes (fix #14063)
  • Loading branch information
nyalldawson committed Mar 9, 2016
1 parent e62d8fe commit 8389b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsdiagramproperties.cpp
Expand Up @@ -826,7 +826,7 @@ void QgsDiagramProperties::showAddAttributeExpressionDialog()
newItem->setText( 0, expression );
newItem->setText( 2, expression );
newItem->setData( 0, Qt::UserRole, expression );
newItem->setFlags( newItem->flags() & ~Qt::ItemIsDropEnabled );
newItem->setFlags(( newItem->flags() | Qt::ItemIsEditable ) & ~Qt::ItemIsDropEnabled );

//set initial color for diagram category
int red = 1 + ( int )( 255.0 * qrand() / ( RAND_MAX + 1.0 ) );
Expand Down

0 comments on commit 8389b7f

Please sign in to comment.