[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    [PATCH] crash in korganizer
From:       George Staikos <staikos () kde ! org>
Date:       2002-03-10 11:41:38
[Download RAW message or body]

Don't know if this is really what is intended, but I think it is.  It prevents 
a crash.  

In addition, if I add an even (recurring) with no attendees and then delete 
the even, it warns me "Sorry, no attendees".  So what if I want to schedule 
meetings with only myself?  Any comments from the PIM guys?

Ok to apply?

-- 

George Staikos

["korganizer.patch" (text/x-diff)]

Index: komonthview.cpp
===================================================================
RCS file: /home/kde/kdepim/korganizer/komonthview.cpp,v
retrieving revision 1.48
diff -u -r1.48 komonthview.cpp
--- komonthview.cpp	2002/01/27 13:12:53	1.48
+++ komonthview.cpp	2002/03/10 11:37:37
@@ -807,7 +807,7 @@
 void KOMonthView::doRightClickMenu()
 {
   Incidence *incidence = selectedIncidences().first();
-  if( incidence->type() == "Event" ) {
+  if( incidence && incidence->type() == "Event" ) {
     Event *event = static_cast<Event *>(incidence);
     rightClickMenu->showEventPopup(event);
   } else {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic