mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-01 17:41:23 +00:00
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();
|
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)))
|
CSMWorld::Columns::hasEnums (static_cast<CSMWorld::Columns::ColumnId> (mColumnId)))
|
||||||
{
|
{
|
||||||
int value = data.toInt();
|
int value = data.toInt();
|
||||||
|
|
Loading…
Reference in a new issue