Skip to content

Commit c7a9460

Browse files
author
telwertowski
committedJul 7, 2008
Reverse true/false clause in setColumnReadOnly; it was implemented reversed in r8406. This fix prevents modification of the id column.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8719 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgsattributetable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void QgsAttributeTable::setColumnReadOnly(int col, bool ro)
9797
for (int i = 0; i < rowCount(); ++i)
9898
{
9999
QTableWidgetItem *item = this->item(i, col);
100-
item->setFlags(ro ? item->flags() | Qt::ItemIsEditable : item->flags() & ~Qt::ItemIsEditable);
100+
item->setFlags(ro ? item->flags() & ~Qt::ItemIsEditable : item->flags() | Qt::ItemIsEditable);
101101
}
102102
}
103103

0 commit comments

Comments
 (0)
Please sign in to comment.