ensure that deleted items have a sane datatype (in particular avoid text/x-todo)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@195 15ad00c4-1369-45f4-8270-35d70d36bdcd
This commit is contained in:
parent
80a320e8ec
commit
90e5393a6d
|
@ -286,7 +286,12 @@ class EvolutionSyncSource : public SyncSource
|
|||
++m_it;
|
||||
if (&m_source.m_deletedItems == this) {
|
||||
// just tell caller the uid of the deleted item
|
||||
return new SyncItem( uid.c_str() );
|
||||
// and the type that it probably had
|
||||
SyncItem *item = new SyncItem( uid.c_str() );
|
||||
const char *recvType, *recvVersion, *sendType, *sendVersion;
|
||||
m_source.getPreferredTypes( recvType, recvVersion, sendType, sendVersion );
|
||||
item->setDataType( sendType );
|
||||
return item;
|
||||
} else {
|
||||
// retrieve item with all its data
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue