Better to use deleteLater with QObjects.

This commit is contained in:
Teo Mrnjavac 2016-04-27 15:34:52 +02:00
parent 9920828f81
commit 3ec80be2a1
1 changed files with 1 additions and 1 deletions

View File

@ -456,7 +456,7 @@ void OperationStack::clearOperations()
Operation* o = operations().takeLast();
if (o->status() == Operation::StatusPending)
o->undo();
delete o;
o->deleteLater();
}
emit operationsChanged();