Skip to content

Commit b8bce97

Browse files
committedJan 7, 2016
Allow editing newly added diagram attributes (fix #14063)
1 parent fcef952 commit b8bce97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgsdiagramproperties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ void QgsDiagramProperties::addAttribute( QTreeWidgetItem * item )
498498
newItem->setText( 0, item->text( 0 ) );
499499
newItem->setText( 2, guessLegendText( item->text( 0 ) ) );
500500
newItem->setData( 0, Qt::UserRole, item->data( 0, Qt::UserRole ) );
501-
newItem->setFlags( newItem->flags() & ~Qt::ItemIsDropEnabled );
501+
newItem->setFlags(( newItem->flags() | Qt::ItemIsEditable ) & ~Qt::ItemIsDropEnabled );
502502

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

0 commit comments

Comments
 (0)
Please sign in to comment.