- some code cleanup for multi-build debug

This commit is contained in:
Mark Vejvoda
2010-09-01 04:42:10 +00:00
parent d6d1fe2add
commit 21ded6679f

View File

@@ -648,6 +648,7 @@ Command *Unit::getCurrCommand() const{
void Unit::replaceCurrCommand(Command *cmd) {
assert(!commands.empty());
commands.front() = cmd;
this->setCurrentUnitTitle("");
}
//returns the size of the commands
@@ -1309,6 +1310,7 @@ void Unit::updateTarget(){
}
void Unit::clearCommands() {
this->setCurrentUnitTitle("");
while(!commands.empty()){
undoCommand(commands.back());
delete commands.back();
@@ -1474,6 +1476,7 @@ CommandResult Unit::undoCommand(Command *command){
}
retryCurrCommandCount=0;
this->setCurrentUnitTitle("");
return crSuccess;
}