Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
kdepim4
r904615.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File r904615.diff of Package kdepim4
Subject: korganizer: fix event duplication when moving events with the mouse. From: wstephenson@suse.de Bug: Patch-upstream: 904615 --- korganizer/koagendaview.cpp (revision 904614) +++ korganizer/koagendaview.cpp (revision 904615) @@ -1030,9 +1030,15 @@ void KOAgendaView::updateEventDates( KOA // FIXME: use a visitor here if ( incidence->type() == "Event" ) { - incidence->setDtStart( startDt.toTimeSpec( incidence->dtStart().timeSpec() ) ); + /* setDtEnd() must be called before setDtStart(), otherwise, when moving events, + * CalendarLocal::incidenceUpdated() will not remove the old hash and that causes + * the event to be shown in the old date also (bug #179157). + * + * TODO: We need a better hashing mechanism for CalendarLocal. + */ ( static_cast<Event*>( incidence ) )->setDtEnd( endDt.toTimeSpec( incidence->dtEnd().timeSpec() ) ); + incidence->setDtStart( startDt.toTimeSpec( incidence->dtStart().timeSpec() ) ); } else if ( incidence->type() == "Todo" ) { Todo *td = static_cast<Todo*>( incidence ); if ( td->hasStartDate() ) { Index: korganizer/koagendaview.cpp ===================================================================
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor