Skip to content

Commit

Permalink
Allow editing newly added diagram attributes (fix #14063)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 7, 2016
1 parent fcef952 commit b8bce97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsdiagramproperties.cpp
Expand Up @@ -498,7 +498,7 @@ void QgsDiagramProperties::addAttribute( QTreeWidgetItem * item )
newItem->setText( 0, item->text( 0 ) );
newItem->setText( 2, guessLegendText( item->text( 0 ) ) );
newItem->setData( 0, Qt::UserRole, item->data( 0, Qt::UserRole ) );
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 b8bce97

Please sign in to comment.