Bug 75372

Summary: when copying an appointment in korganizer, the appointment is *moved* on my pilot after synronizing
Product: [Applications] kpilot Reporter: MaxAuthority <stubenschrott>
Component: GeneralAssignee: groot
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description MaxAuthority 2004-02-16 17:56:59 UTC
Version:           4.4.0 (HEAD) (using KDE 3.2.0, Gentoo)
Compiler:          gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)
OS:          Linux (i686) release 2.6.3-rc2-mm1

When I copy an appointment with Ctrl-C and Ctrl-V in Korganizer, it shows two entries with different date/time. However, when I sync my Palm m505 afterwards with KPilot, only the new date of the appointment shows up, instead of both on my pilot. However, in my KOrganizer application, I still have both entries.

I am not totally sure, if this is a KOrganizer/KPilot or pilot-link bug however.
Comment 1 David Greengas 2004-03-03 18:22:47 UTC
I was able to repeat this problem.

After looking the calendar file itself in a text editor, I noticed that both the original and the copy had the same X-PILOTID. It is my guess that during the transfer to the Palm Pilot, it looks first at X-PILOTID and then SUMMARY because when I changed the SUMMARY for the copy, the copy synced to the Palm and replaced the original. I hope this helps to resolve the issue.
Comment 2 Reinhold Kainhofer 2004-07-28 15:57:08 UTC
CVS commit by kainhofe: 

If we clone an incidence, we also need to reset the pilot id. Otherwise we'll have two items with the same pilot id, which will prevent incidences copied in korganizer to be synced (unless you do a first sync).

CCMAIL: 75372-done@bugs.kde.org


  M +2 -0      incidence.cpp   1.48


--- kdepim/libkcal/incidence.cpp  #1.47:1.48
@@ -152,4 +152,6 @@ void Incidence::recreate()
 
   setLastModified(QDateTime::currentDateTime());
+  setPilotId( 0 );
+  setSyncStatus( SYNCNONE );
 }