[Bug 147602] New: Incidence::removeRelation does nothing, really

tstaerk dev at staerk.de
Fri Jul 6 10:24:57 BST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=147602         
           Summary: Incidence::removeRelation does nothing, really
           Product: kontact
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdepim-bugs kde org
        ReportedBy: dev staerk de


Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

When calling Incidence::removeRelation, nothing seems to happen. I wrote a test case for this:

/* test case for Incidence::removeRelation
(c) 2007 by Thorsten Staerk
This test case associates a todo with another, removes this relation
and shows if the removal was successful.
Compile it like this:
g++ -I/opt/kde3/include -I/usr/lib/qt3/include -lqt-mt -L/usr/lib/qt3/lib -lkcal -L/opt/kde3/lib main.cpp
*/

#include <libkcal/todo.h>
#include <kdebug.h>

class KCal::Incidence;

int main()
{
  KCal::Todo* i=new KCal::Todo();
  KCal::Todo* b=new KCal::Todo();
  b->setRelatedTo(i);
  kdDebug() << "b is now related to " << b->relatedTo() << endl;
  b->removeRelation(i);
  kdDebug() << "I expect the following to be empty: " << b->relatedTo() << endl;
}

b->relatedTo stays something even after b->removeRelation.



More information about the Kdepim-bugs mailing list