1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

removed redundant calls.

This commit is contained in:
dteviot 2015-04-03 13:45:13 +13:00
parent 900aae2bb9
commit 6b6bed520d
2 changed files with 0 additions and 3 deletions

View File

@ -548,7 +548,6 @@ namespace MWGui
WindowModal::open();
mMagicList->setModel(new SpellModel(MWBase::Environment::get().getWorld()->getPlayerPtr()));
mMagicList->update();
}
void MagicSelectionDialog::onModelIndexSelected(SpellModel::ModelIndex index)

View File

@ -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)