forked from mirror/openmw-tes3mp
fixed string filter on enum column when column is empty
This commit is contained in:
parent
a29b8667ef
commit
b5d620a8dc
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ bool CSMFilter::TextNode::test (const CSMWorld::IdTable& table, int row,
|
|||
{
|
||||
string = data.toString();
|
||||
}
|
||||
else if (data.type()==QVariant::Int || data.type()==QVariant::UInt ||
|
||||
else if ((data.type()==QVariant::Int || data.type()==QVariant::UInt) &&
|
||||
CSMWorld::Columns::hasEnums (static_cast<CSMWorld::Columns::ColumnId> (mColumnId)))
|
||||
{
|
||||
int value = data.toInt();
|
||||
|
|
Loading…
Reference in a new issue