TizenRefApp-6979 Removed group displayed on contact's details screen 13/86913/3
authorEugene Kurzberg <i.kurtsberg@samsung.com>
Mon, 5 Sep 2016 11:33:50 +0000 (14:33 +0300)
committerAleksandr Sapozhnik <a.sapozhnik@samsung.com>
Wed, 7 Sep 2016 10:47:50 +0000 (03:47 -0700)
Change-Id: Ic3aad50f71d2b207ea5775ad1e5c7f307bdb5ccd
Signed-off-by: Eugene Kurzberg <i.kurtsberg@samsung.com>
lib-contacts/src/Contacts/Model/ContactArray.cpp

index 92af625..d5bac75 100644 (file)
@@ -89,8 +89,8 @@ void ContactArray::onUpdate(contacts_record_h record)
                        ++fieldIt;
                        ++recordIt;
                } else {
-                       fieldIt->update(nullptr);
-                       ContactFieldContainer::removeField(*fieldIt);
+                       auto field = ContactFieldContainer::removeField(*fieldIt);
+                       field->update(nullptr);
                }
        }