Fix for bug PAL19432 (Qt4 porting: Application crash at Add button push (Set Filters dialog, Create Group).

This commit is contained in:
mzn 2008-04-08 15:22:29 +00:00
parent a0733b3b36
commit a2c6f7ce5a

View File

@ -548,10 +548,15 @@ void SMESHGUI_FilterTable::Table::setEditable (bool isEditable,
{
QTableWidgetItem* anItem = item( row, col );
if ( anItem ) {
bool isSignalsBlocked = signalsBlocked();
blockSignals( true );
Qt::ItemFlags f = anItem->flags();
if ( !isEditable ) f = f & ~Qt::ItemIsEditable;
else f = f | Qt::ItemIsEditable;
anItem->setFlags( f );
blockSignals( isSignalsBlocked );
}
}