Project

General

Profile

Bug #2503 ยป 0001-WStandardItem-setEditable-false-removes-ItemIsEditab.patch

Proposed fix - Tristan Lanfrey, 12/06/2013 03:01 AM

View differences:

src/Wt/WStandardItem.C
void WStandardItem::setEditable(bool editable)
{
if (!isEditable()) {
if (!isEditable() && editable) {
flags_ |= ItemIsEditable;
signalModelDataChange();
}
else if (isEditable() && !editable) {
flags_ ^= ItemIsEditable;
signalModelDataChange();
}
}
bool WStandardItem::isEditable() const
    (1-1/1)