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

List:       kde-commits
Subject:    kroupware_branch: kdepim/korganizer
From:       Bo Thorsen <bo () sonofthor ! dk>
Date:       2003-12-02 8:17:09
[Download RAW message or body]

CVS commit by thorsen: 

Fix crashes in korganizer when groupware communication is off


  M +17 -5     calendarview.cpp   1.157.2.32


--- kdepim/korganizer/calendarview.cpp  #1.157.2.31:1.157.2.32
@@ -776,5 +776,10 @@ void CalendarView::newFloatingEvent()
 void CalendarView::editEvent( Event *event )
 {
-  if ( !event || !KOGroupware::instance()->canEditEvent() ) return;
+  if ( !event )
+    return;
+  
+  if ( KOPrefs::instance()->mGroupwareCommunication )
+    if ( !KOGroupware::instance()->canEditEvent() )
+      return;
 
   if ( event->isReadOnly() ) {
@@ -786,4 +791,5 @@ void CalendarView::editEvent( Event *eve
 
   // Tell KMail not to sync events while this is open
+  if ( KOPrefs::instance()->mGroupwareCommunication )
   KOGroupware::instance()->editingEvent( eventEditor );
 
@@ -799,5 +805,10 @@ void CalendarView::editEvent( Event *eve
 void CalendarView::editTodo( Todo *todo )
 {
-  if ( !todo || !KOGroupware::instance()->canEditTodo() ) return;
+  if ( !todo )
+          return;
+
+  if ( KOPrefs::instance()->mGroupwareCommunication )
+    if ( !KOGroupware::instance()->canEditTodo() )
+      return;
 
   if ( todo->isReadOnly() ) {
@@ -809,4 +820,5 @@ void CalendarView::editTodo( Todo *todo 
 
   // Tell KMail not to sync todos while this is open
+  if ( KOPrefs::instance()->mGroupwareCommunication )
   KOGroupware::instance()->editingTodo( todoEditor );
 


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

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