Bug 159976

Summary: KCal::Event's hasEndDate() always delivers true
Product: [I don't know] kde Reporter: Thorsten Staerk <dev>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: shows that hasEndDate always delivers true
CMakeLists.txt to build the test case
/tmp/ktimetrackerkonsole.ics
first patch, still to be tested

Description Thorsten Staerk 2008-03-27 22:35:15 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

hasEndDate as of http://www.englishbreakfastnetwork.org/apidocs/apidox-kde-4.0/kdepimlibs-apidocs/kcal/html/classKCal_1_1Event.html#2f980150df1a3b3883f9605b25fa769f always delivers true, even if no event in an iCal file has got an end date. I attach a test case.
Comment 1 Thorsten Staerk 2008-03-27 22:36:20 UTC
Created attachment 24091 [details]
shows that hasEndDate always delivers true
Comment 2 Thorsten Staerk 2008-03-27 22:38:49 UTC
Created attachment 24092 [details]
CMakeLists.txt to build the test case

to build and run the test case, use 
 cmake . && make && ./kde4start
Comment 3 Thorsten Staerk 2008-03-27 22:39:57 UTC
Created attachment 24093 [details]
/tmp/ktimetrackerkonsole.ics 

copy this to /tmp/ktimetrackerkonsole.ics and run the test - you will see that
hasEndDate always returns true.
Comment 4 Thorsten Staerk 2008-03-27 22:56:53 UTC
Created attachment 24094 [details]
first patch, still to be tested
Comment 5 Thorsten Staerk 2008-03-27 23:04:04 UTC
SVN commit 790965 by tstaerk:

hasEndDate() needs to deliver false if an event has no enddate. See
http://www.englishbreakfastnetwork.org/apidocs/apidox-kde-4.0/kdepimlibs-apidocs/kcal/html/classKCal_1_1Event.html#2f980150df1a3b3883f9605b25fa769f
BUGS:159976


 M  +1 -0      icalformat_p.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=790965
Comment 6 Thorsten Staerk 2008-03-27 23:14:45 UTC
SVN commit 790972 by tstaerk:

Allow stopping a task in konsole mode.
CCBUGS:159976


 M  +9 -1      karmstorage.cpp  
 M  +2 -2      main.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=790972
Comment 7 Thorsten Staerk 2008-03-27 23:51:43 UTC
With this bug being resolved, it is now possible to resolve bug 84152.