diff --git a/src/app/qgsrasterlayerproperties.cpp b/src/app/qgsrasterlayerproperties.cpp index f407a5cf051..6f1ae9a2d5f 100644 --- a/src/app/qgsrasterlayerproperties.cpp +++ b/src/app/qgsrasterlayerproperties.cpp @@ -2704,17 +2704,21 @@ void QgsRasterLayerProperties::on_mDeleteEntryButton_clicked() void QgsRasterLayerProperties::handleColormapTreeWidgetDoubleClick(QTreeWidgetItem* item, int column) { if(item) - { - if(column == 1) - { - //show color dialog - QColor newColor = QColorDialog::getColor(); - if(newColor.isValid()) + { + if(column == 1) + { + //show color dialog + QColor newColor = QColorDialog::getColor(); + if(newColor.isValid()) { item->setBackground(1, QBrush(newColor)); } - } } + else + { + item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsEditable | Qt::ItemIsSelectable); + } + } } void QgsRasterLayerProperties::on_pbtnLoadMinMax_clicked()