|
|
|
@ -71,7 +71,6 @@ namespace MWGui
|
|
|
|
|
SortFilterItemModel::SortFilterItemModel(ItemModel *sourceModel)
|
|
|
|
|
: mCategory(Category_All)
|
|
|
|
|
, mFilter(0)
|
|
|
|
|
, mShowEquipped(true)
|
|
|
|
|
, mSortByType(true)
|
|
|
|
|
{
|
|
|
|
|
mSourceModel = sourceModel;
|
|
|
|
@ -91,9 +90,6 @@ namespace MWGui
|
|
|
|
|
{
|
|
|
|
|
MWWorld::Ptr base = item.mBase;
|
|
|
|
|
|
|
|
|
|
if (item.mType == ItemStack::Type_Equipped && !mShowEquipped)
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
int category = 0;
|
|
|
|
|
if (base.getTypeName() == typeid(ESM::Armor).name()
|
|
|
|
|
|| base.getTypeName() == typeid(ESM::Clothing).name())
|
|
|
|
|