emit operationsChanged signal each time an operation is pushed even if it's

merged with an existing operation: the merge may have caused an existing
operation to change in a way that needs reflecting in the GUI (e.g. a
NewOperation now has a different FileSystem)

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1106847
This commit is contained in:
Volker Lanz 2010-03-24 00:30:48 +00:00
parent b28a66bc3f
commit 972a8e4fd0
1 changed files with 4 additions and 1 deletions

View File

@ -398,8 +398,11 @@ void OperationStack::push(Operation* o)
operations().append(o);
o->preview();
o->setStatus(Operation::StatusPending);
emit operationsChanged();
}
// emit operationsChanged even if o is NULL because it has been merged: merging might
// have led to an existing operation changing.
emit operationsChanged();
}
/** Removes the topmost Operation from the OperationStack, calls Operation::undo() on it and deletes it. */