Skip to content
Permalink
Browse files

Allow editing newly added diagram attributes (fix #14063)

  • Loading branch information
nyalldawson committed Jan 7, 2016
1 parent fcef952 commit b8bce97c1f2f089ece559a9501c7e4d83732aa7c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsdiagramproperties.cpp
@@ -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 ) );

0 comments on commit b8bce97

Please sign in to comment.
You can’t perform that action at this time.