Bug 159976 - KCal::Event's hasEndDate() always delivers true
Summary: KCal::Event's hasEndDate() always delivers true
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-27 22:35 UTC by Thorsten Staerk
Modified: 2008-03-27 23:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
shows that hasEndDate always delivers true (1.12 KB, text/x-c++src)
2008-03-27 22:36 UTC, Thorsten Staerk
Details
CMakeLists.txt to build the test case (297 bytes, text/plain)
2008-03-27 22:38 UTC, Thorsten Staerk
Details
/tmp/ktimetrackerkonsole.ics (2.58 KB, text/calendar)
2008-03-27 22:39 UTC, Thorsten Staerk
Details
first patch, still to be tested (2.36 KB, patch)
2008-03-27 22:56 UTC, Thorsten Staerk
Details

Note You need to log in before you can comment on or make changes to this bug.
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.