Forgot emiting "layoutAbouttobechanged" in NetlistModel::setCell().

* Bug: In NetlistModel::setCell() template, forgot to send the
    "layoutAboutToBeChanged" signal before disconnecting the
    netlist datas. This seemed to go unnoticed until ported
    under Qt5. Was generating strange random core dump when
    running the engines with a net kept selected. Disgraceful
    crash during demos...
This commit is contained in:
Jean-Paul Chaput 2022-01-26 19:41:39 +01:00
parent 7f936367f8
commit fd624f03b6
3 changed files with 18 additions and 16 deletions
hurricane/src/viewer/hurricane/viewer

View File

@ -67,6 +67,8 @@ namespace Hurricane {
void NetlistModel::setCell ( Cell* cell ) void NetlistModel::setCell ( Cell* cell )
{ {
if (_cell != cell) { if (_cell != cell) {
emit layoutAboutToBeChanged ();
if (_cell) delete _netlist; if (_cell) delete _netlist;
_cell = cell; _cell = cell;