Better to use deleteLater with QObjects.
This commit is contained in:
parent
9920828f81
commit
3ec80be2a1
|
@ -456,7 +456,7 @@ void OperationStack::clearOperations()
|
||||||
Operation* o = operations().takeLast();
|
Operation* o = operations().takeLast();
|
||||||
if (o->status() == Operation::StatusPending)
|
if (o->status() == Operation::StatusPending)
|
||||||
o->undo();
|
o->undo();
|
||||||
delete o;
|
o->deleteLater();
|
||||||
}
|
}
|
||||||
|
|
||||||
emit operationsChanged();
|
emit operationsChanged();
|
||||||
|
|
Loading…
Reference in New Issue