From kde-bugs-dist Wed Aug 31 22:08:47 2005 From: Reinhold Kainhofer Date: Wed, 31 Aug 2005 22:08:47 +0000 To: kde-bugs-dist Subject: [Bug 96237] when a single occurence of a recurring event is moved, Message-Id: <20050831220847.28216.qmail () ktown ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=112552613826286 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. http://bugs.kde.org/show_bug.cgi?id=96237 reinhold kainhofer com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From reinhold kainhofer com 2005-09-01 00:08 ------- SVN commit 455586 by kainhofe: Fix the problem that when moving and dissociating a single item of a recurring sequence, it it shown duplicated until the view is refreshed. BUG: 96237 M +3 -3 koagenda.cpp M +2 -1 koagendaview.cpp --- branches/KDE/3.5/kdepim/korganizer/koagenda.cpp #455585:455586 @ -1075,11 +1075,11 @ if ( newInc ) { // don't recreate items, they already have the correct position emit enableAgendaUpdate( false ); - mChanger->changeIncidence( oldIncSaved, oldInc ); + mActionItem->dissociateFromMultiItem(); mActionItem->setIncidence( newInc ); - mActionItem->dissociateFromMultiItem(); mChanger->addIncidence( newInc ); emit enableAgendaUpdate( true ); + mChanger->changeIncidence( oldIncSaved, oldInc ); } else { KMessageBox::sorry( this, i18n("Unable to add the exception item to the " "calendar. No change will be done."), i18n("Error Occurred") ); @ -1552,7 +1552,7 @ int YTop, int YBottom ) { #if 0 - kdDebug(5850) << "KOAgenda::insertItem:" << event->summary() << "-" + kdDebug(5850) << "KOAgenda::insertItem:" << incidence->summary() << "-" << qd.toString() << " ;top, bottom:" << YTop << "," << YBottom << endl; #endif --- branches/KDE/3.5/kdepim/korganizer/koagendaview.cpp #455585:455586 @ -1353,7 +1353,8 @ // recreating everything even causes troubles: dropping to the day matrix // recreates the agenda items, but the evaluation is still in an agendaItems' code, // which was deleted in the mean time. Thus KOrg crashes... - changeIncidenceDisplayAdded( incidence ); + if ( mAllowAgendaUpdate ) + changeIncidenceDisplayAdded( incidence ); break; } case KOGlobals::INCIDENCEEDITED: {