File r903430.diff of Package kdepim4

Subject: korganizer: fix to-do copying
From: wstephenson@suse.de
Bug: 
Patch-upstream: 903430
--- korganizer/views/todoview/kotodomodel.cpp	(revision 903429)
+++ korganizer/views/todoview/kotodomodel.cpp	(revision 903430)
@@ -29,6 +29,7 @@
 #include "korganizer/incidencechangerbase.h"
 
 #include <kcal/calendar.h>
+#include <kcal/calformat.h>
 #include <kcal/incidence.h>
 #include <kcal/incidenceformatter.h>
 #include <kcal/todo.h>
@@ -337,7 +338,7 @@ void KOTodoModel::copyTodo( const QModel
   TodoTreeNode *node = static_cast<TodoTreeNode *>( index.internalPointer() );
   Todo *todo = node->mTodo->clone();
 
-  todo->setUid( QString() );
+  todo->setUid( CalFormat::createUniqueId() );
 
   KDateTime due = todo->dtDue();
   due.setDate( date );
Index: korganizer/views/todoview/kotodomodel.cpp
===================================================================
openSUSE Build Service is sponsored by