Forgot to apply the same fix to companion window

This commit is contained in:
scrawl 2013-11-16 23:55:54 +01:00
parent eb46de54e4
commit b8f5cd6cb7

View file

@ -86,12 +86,13 @@ void CompanionWindow::onBackgroundSelected()
void CompanionWindow::open(const MWWorld::Ptr& npc)
{
mPtr = npc;
setTitle(MWWorld::Class::get(npc).getName(npc));
updateEncumbranceBar();
mModel = new CompanionItemModel(npc);
mSortModel = new SortFilterItemModel(mModel);
mItemView->setModel(mSortModel);
setTitle(MWWorld::Class::get(npc).getName(npc));
}
void CompanionWindow::onFrame()