Bug #2503 ยป 0001-WStandardItem-setEditable-false-removes-ItemIsEditab.patch
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
|