[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-06-16 12:59:28
[Download RAW message or body]

CVS commit by thorsen: 

Fix kroupware issue #309 - Always update the counter when sending out updates


  M +4 -13     koeventeditor.cpp   1.39.2.35


--- kdepim/korganizer/koeventeditor.cpp  #1.39.2.34:1.39.2.35
@@ -338,4 +338,6 @@ bool KOEventEditor::processInput()
     else {
       kdDebug(5850) << "Event changed\n";
+      int revision = event->revision();
+      event->setRevision( revision + 1 );
       if( !KOPrefs::instance()->mGroupwareCommunication ||
           KOGroupware::instance()->sendICalMessage( this, KCal::Scheduler::Request, event ) )
@@ -343,19 +345,8 @@ bool KOEventEditor::processInput()
         // Accept the event changes
         writeEvent( mEvent );
-        mEvent->setRevision(event->revision()+1);
-
-#if 0
-        // Figure out if KMail sync refreshed the event under us
-        Event* calEvent = mCalendar->event( event->uid() );
-        if( calEvent == 0 || !(*calEvent == *refEvent) ) {
-          // The old one is gone
-          mCalendar->addEvent(event);
-          mEvent = event;
-          emit eventAdded(event);
-        } else
-#endif
           emit eventChanged(mEvent);
       } else {
         // Revert the changes
+        event->setRevision( revision );
         rc = false;
       }


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

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