Skip to content

Commit

Permalink
Reverse true/false clause in setColumnReadOnly; it was implemented re…
Browse files Browse the repository at this point in the history
…versed in r8406. This fix prevents modification of the id column.

git-svn-id: http://svn.osgeo.org/qgis/trunk@8719 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski committed Jul 7, 2008
1 parent 797ff2c commit 25895d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsattributetable.cpp
Expand Up @@ -97,7 +97,7 @@ void QgsAttributeTable::setColumnReadOnly(int col, bool ro)
for (int i = 0; i < rowCount(); ++i)
{
QTableWidgetItem *item = this->item(i, col);
item->setFlags(ro ? item->flags() | Qt::ItemIsEditable : item->flags() & ~Qt::ItemIsEditable);
item->setFlags(ro ? item->flags() & ~Qt::ItemIsEditable : item->flags() | Qt::ItemIsEditable);
}
}

Expand Down

0 comments on commit 25895d0

Please sign in to comment.