Bug 62719

Summary: After event edit it disapperes from the list
Product: [Applications] korganizer Reporter: Fjey <fjey>
Component: generalAssignee: Cornelius Schumacher <schumacher>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 3.1.1   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Fjey 2003-08-15 16:22:44 UTC
Version:           3.1.1 (using KDE KDE 3.1.3)
Installed from:    RedHat RPMs
OS:          Linux

When I am in the "List" view and edit an event (by double clicking on the event or selecting "Edit ..." from context menu), the event disappers from the list for the day selected. When I change the date in calendar and then change back to the date of the event I have edited, the event is shown correctly again in the list.
In older versions (on different Linux distrubition with different KDE version) this happened also when adding new event - now it works correctly when adding but not when editing.
Comment 1 Reinhold Kainhofer 2003-09-28 22:14:58 UTC
Subject: kdepim/korganizer

CVS commit by kainhofe: 

Editing an event no longer removes it from KOrganizer's list view mode.

We kept track of all list view items in a QMap and checked the existence using this map. Now if an item was edited, the old one was removed from the list view and then the new was added to the view. We just forgot to update the QMap when the item was removed, thus the view thought the item was already in the list, and the new one wasn't added.

CCMAIL: 62719-done@bugs.kde.org


  M +1 -0      kolistview.cpp   1.59


--- kdepim/korganizer/kolistview.cpp  #1.58:1.59
@@ -338,4 +338,5 @@ void KOListView::changeEventDisplay(Even
       if (item) {
         delete item;
+        mUidDict.remove( event->uid() );
         addIncidence( event );
       }