|
|
|
@ -65,7 +65,6 @@ namespace MWGui
|
|
|
|
|
mSpellIcons->updateWidgets(mEffectBox, false);
|
|
|
|
|
|
|
|
|
|
mSpellView->setModel(new SpellModel(MWBase::Environment::get().getWorld()->getPlayerPtr()));
|
|
|
|
|
mSpellView->update();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SpellWindow::onEnchantedItemSelected(MWWorld::Ptr item, bool alreadyEquipped)
|
|
|
|
@ -170,7 +169,6 @@ namespace MWGui
|
|
|
|
|
void SpellWindow::cycle(bool next)
|
|
|
|
|
{
|
|
|
|
|
mSpellView->setModel(new SpellModel(MWBase::Environment::get().getWorld()->getPlayerPtr()));
|
|
|
|
|
mSpellView->getModel()->update();
|
|
|
|
|
|
|
|
|
|
SpellModel::ModelIndex selected = 0;
|
|
|
|
|
for (SpellModel::ModelIndex i = 0; i<int(mSpellView->getModel()->getItemCount()); ++i)
|
|
|
|
|