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:
Patrick Ohly 2006-07-27 19:42:44 +00:00
parent 80a320e8ec
commit 90e5393a6d

View file

@ -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 {