mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-05 21:24:16 +05:00
Fix for bug PAL19432 (Qt4 porting: Application crash at Add button push (Set Filters dialog, Create Group).
This commit is contained in:
parent
a0733b3b36
commit
a2c6f7ce5a
@ -548,10 +548,15 @@ void SMESHGUI_FilterTable::Table::setEditable (bool isEditable,
|
|||||||
{
|
{
|
||||||
QTableWidgetItem* anItem = item( row, col );
|
QTableWidgetItem* anItem = item( row, col );
|
||||||
if ( anItem ) {
|
if ( anItem ) {
|
||||||
|
bool isSignalsBlocked = signalsBlocked();
|
||||||
|
blockSignals( true );
|
||||||
|
|
||||||
Qt::ItemFlags f = anItem->flags();
|
Qt::ItemFlags f = anItem->flags();
|
||||||
if ( !isEditable ) f = f & ~Qt::ItemIsEditable;
|
if ( !isEditable ) f = f & ~Qt::ItemIsEditable;
|
||||||
else f = f | Qt::ItemIsEditable;
|
else f = f | Qt::ItemIsEditable;
|
||||||
anItem->setFlags( f );
|
anItem->setFlags( f );
|
||||||
|
|
||||||
|
blockSignals( isSignalsBlocked );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1402,7 +1407,7 @@ void SMESHGUI_FilterTable::addRow (Table* theTable, const int theType, const boo
|
|||||||
}
|
}
|
||||||
|
|
||||||
theTable->setEditable(false, theTable->rowCount() - 1, 4);
|
theTable->setEditable(false, theTable->rowCount() - 1, 4);
|
||||||
|
|
||||||
if (aCurrRow >=0 && aCurrRow < theTable->rowCount() &&
|
if (aCurrRow >=0 && aCurrRow < theTable->rowCount() &&
|
||||||
aCurrCol >=0 && aCurrCol < theTable->rowCount())
|
aCurrCol >=0 && aCurrCol < theTable->rowCount())
|
||||||
theTable->setCurrentCell(aCurrRow, aCurrCol);
|
theTable->setCurrentCell(aCurrRow, aCurrCol);
|
||||||
|
Loading…
Reference in New Issue
Block a user