Skip to content

Commit e4d82aa

Browse files
author
ersts
committed
-Custom color map is now editable after initial creation
-Closes ticket #1046 git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8399 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 8925d80 commit e4d82aa

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/app/qgsrasterlayerproperties.cpp

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2704,17 +2704,21 @@ void QgsRasterLayerProperties::on_mDeleteEntryButton_clicked()
27042704
void QgsRasterLayerProperties::handleColormapTreeWidgetDoubleClick(QTreeWidgetItem* item, int column)
27052705
{
27062706
if(item)
2707-
{
2708-
if(column == 1)
2709-
{
2710-
//show color dialog
2711-
QColor newColor = QColorDialog::getColor();
2712-
if(newColor.isValid())
2707+
{
2708+
if(column == 1)
2709+
{
2710+
//show color dialog
2711+
QColor newColor = QColorDialog::getColor();
2712+
if(newColor.isValid())
27132713
{
27142714
item->setBackground(1, QBrush(newColor));
27152715
}
2716-
}
27172716
}
2717+
else
2718+
{
2719+
item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsEditable | Qt::ItemIsSelectable);
2720+
}
2721+
}
27182722
}
27192723

27202724
void QgsRasterLayerProperties::on_pbtnLoadMinMax_clicked()

0 commit comments

Comments
 (0)