mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-08 03:06:41 +00:00
cleaned up some enum confusion
This commit is contained in:
parent
375d426dd0
commit
f3c7532660
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ bool CSMFilter::ValueNode::test (const CSMWorld::IdTableBase& table, int row,
|
||||||
QVariant data = table.data (index);
|
QVariant data = table.data (index);
|
||||||
|
|
||||||
if (data.type()!=QVariant::Double && data.type()!=QVariant::Bool && data.type()!=QVariant::Int &&
|
if (data.type()!=QVariant::Double && data.type()!=QVariant::Bool && data.type()!=QVariant::Int &&
|
||||||
data.type()!=QVariant::UInt && data.type()!=static_cast<QVariant::Type> (QMetaType::Float))
|
data.type()!=QVariant::UInt)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
double value = data.toDouble();
|
double value = data.toDouble();
|
||||||
|
|
Loading…
Reference in a new issue