Bug 87798 - Korganizer crashes on undo when no resource available
Summary: Korganizer crashes on undo when no resource available
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Cornelius Schumacher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-22 23:18 UTC by Cornelius Schumacher
Modified: 2004-08-24 22:53 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 Cornelius Schumacher 2004-08-22 23:18:31 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

Add an event, disable all resources, select undo -> crash.
Comment 1 Tobias Koenig 2004-08-24 22:53:02 UTC
CVS commit by tokoe: 

Fixed crash mentioned in 87798.

CCMAIL:87798-done@bugs.kde.org


  M +2 -1      history.cpp   1.5


--- kdepim/korganizer/history.cpp  #1.4:1.5
@@ -198,4 +198,5 @@ void History::EntryAdd::undo()
 {
   Incidence *incidence = mCalendar->incidence( mIncidence->uid() );
+  if ( incidence )
   mCalendar->deleteIncidence( incidence );
 }