clear name edits when opening alchemy / spell creation

actorid
scrawl 12 years ago
parent 6f7a621b6f
commit 646e689239

@ -132,6 +132,8 @@ namespace MWGui
openContainer (MWBase::Environment::get().getWorld()->getPlayer().getPlayer()); // this sets mPtr
setFilter (ContainerBase::Filter_Ingredients);
mNameEdit->setCaption("");
mAlchemy.setAlchemist (mPtr);
int index = 0;

@ -170,7 +170,7 @@ void DialogueWindow::startDialogue(MWWorld::Ptr actor, std::string npcName)
setTitle(npcName);
mTopicsList->clear();
mHistory->eraseText(0,mHistory->getTextLength());
mHistory->setCaption("");
updateOptions();
}

@ -291,6 +291,7 @@ namespace MWGui
void SpellCreationDialog::startSpellMaking (MWWorld::Ptr actor)
{
mPtr = actor;
mNameEdit->setCaption("");
startEditing();
}

Loading…
Cancel
Save