Set the correct Object type for all date objects
authorLars Knoll <lars.knoll@digia.com>
Sat, 4 May 2013 20:15:04 +0000 (22:15 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Sun, 5 May 2013 12:12:39 +0000 (14:12 +0200)
Change-Id: I25b229809d07cb1dda875b84e2c48e056397050c
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/v4/qv4dateobject.cpp

index 09818dc..d7d1cbd 100644 (file)
@@ -660,6 +660,7 @@ static double getLocalTZA()
 DateObject::DateObject(ExecutionEngine *engine, const QDateTime &date)
     : Object(engine)
 {
+    type = Type_DateObject;
     value = Value::fromDouble(FromDateTime(date));
 }