Skip to content

Commit

Permalink
Allow editing newly added diagram expression attributes (fix #14063)
Browse files Browse the repository at this point in the history
(cherry-picked from 8389b7f)
  • Loading branch information
nyalldawson committed Mar 10, 2016
1 parent 7baedaf commit 602cfa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsdiagramproperties.cpp
Original file line number Diff line number Diff line change
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 602cfa1

Please sign in to comment.