Commit 428fc164 authored by mvogt's avatar mvogt

[libcontacts] Correctly initialize status flags. Contributes to MER#1206

parent 69d6ad41
......@@ -140,7 +140,7 @@ public:
struct CacheItem
{
CacheItem() : itemData(0), iid(0), contactState(ContactAbsent), listeners(0) {}
CacheItem() : itemData(0), iid(0), statusFlags(0), contactState(ContactAbsent), listeners(0) {}
CacheItem(const QContact &contact)
: contact(contact), itemData(0), iid(internalId(contact)),
statusFlags(contact.detail<QContactStatusFlags>().flagsValue()), contactState(ContactAbsent), listeners(0) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment