[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: [Kde-pim] Bug in akonadi/resources/ical/icalresource.cpp ?
From: "David Jarvie" <djarvie () kde ! org>
Date: 2009-01-29 13:29:07
Message-ID: 124b9396824975643452e2b7adb19db7.squirrel () www ! sensical ! net
[Download RAW message or body]
There appears to be a bug in akonadi/resources/ical/icalresource.cpp, in
ICalResource::itemChanged(). The line
*incidence = *(payload.get());
assumes that operator=() is virtual, but that not being the case it will
only copy the base Incidence class part of what payload.get() returns - if
it's an Event, for example, the Event d-pointer won't be copied. Even if
it did work, it should first check that the Incidence sub-class type is
the same on both sides of the assignment. Or am I completely mistaken?
--
David Jarvie.
KAlarm author & maintainer.
http://www.astrojar.org.uk/kalarm
_______________________________________________
KDE PIM mailing list kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic