Bug 62719 - After event edit it disapperes from the list
Summary: After event edit it disapperes from the list
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 3.1.1
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Cornelius Schumacher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-15 16:22 UTC by Fjey
Modified: 2003-09-28 22:14 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 );
       }