forked from mirror/openmw-tes3mp
Merge remote-tracking branch 'sirherrbatka/Feature#1274'
This commit is contained in:
commit
c2ea92b93a
1 changed files with 7 additions and 3 deletions
|
@ -111,13 +111,17 @@ void CSVWorld::TableSubView::createFilterRequest (std::vector< CSMWorld::Univers
|
|||
{
|
||||
std::vector<std::pair<std::string, std::vector<std::string> > > filterSource;
|
||||
|
||||
for (std::vector<CSMWorld::UniversalId>::iterator it = types.begin(); it != types.end(); ++it)
|
||||
for (std::vector<CSMWorld::UniversalId>::iterator it(types.begin()); it != types.end(); ++it)
|
||||
{
|
||||
std::pair<std::string, std::vector<std::string> > pair( //splited long line
|
||||
std::make_pair(it->getId(), mTable->getColumnsWithDisplay(CSMWorld::TableMimeData::convertEnums(it->getType()))));
|
||||
|
||||
if(!pair.second.empty())
|
||||
{
|
||||
filterSource.push_back(pair);
|
||||
}
|
||||
}
|
||||
|
||||
mFilterBox->createFilterRequest(filterSource, action);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue