Fixes: Properly save subtypes for address detail
authorMathias Hasselmann <mathias@openismus.com>
Wed, 9 Jun 2010 20:52:25 +0000 (22:52 +0200)
committerMathias Hasselmann <mathias@openismus.com>
Wed, 9 Jun 2010 21:17:40 +0000 (23:17 +0200)
commit665b48ebd2c341b0ef19aa79ab17af11eb515a0a
treedefeb0409294a71e4b22911b3a78cd6abe67d3eb
parentd3d8a9dce7e1b7211d6cf102fcdfbe9827610a3b
Fixes: Properly save subtypes for address detail

RevBy: TrustMe
Details:

 * src/engine/contactsaverequest2.cpp: collectFieldUpdates():
   Move object variable to proper scope to make sure even blank variant, as it
   happens for street address, is shared.

 * tests/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin.cpp:
 * tests/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin.h:
   testRemoveSubType(), testRemoveSubType_data():
   Also test subtypes for address detail.
src/engine/contactsaverequest2.cpp
tests/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin.cpp
tests/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin.h