-rw-r--r-- | korganizer/calendarview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 56b3fb0..0c75632 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -726,24 +726,26 @@ int CalendarView::takeEvent( Incidence* local, Incidence* remote, int mode , b | |||
726 | // 2 take remote | 726 | // 2 take remote |
727 | // 3 cancel | 727 | // 3 cancel |
728 | QDateTime lastSync = mLastCalendarSync; | 728 | QDateTime lastSync = mLastCalendarSync; |
729 | if ( mGlobalSyncMode == SYNC_MODE_EXTERNAL ) { | 729 | if ( mGlobalSyncMode == SYNC_MODE_EXTERNAL ) { |
730 | bool remCh, locCh; | 730 | bool remCh, locCh; |
731 | remCh = ( remote->getCsum(mCurrentSyncDevice) != local->getCsum(mCurrentSyncDevice) ); | 731 | remCh = ( remote->getCsum(mCurrentSyncDevice) != local->getCsum(mCurrentSyncDevice) ); |
732 | //if ( remCh ) | 732 | //if ( remCh ) |
733 | //qDebug("loc %s rem %s", local->getCsum(mCurrentSyncDevice).latin1(), remote->getCsum(mCurrentSyncDevice).latin1() ); | 733 | //qDebug("loc %s rem %s", local->getCsum(mCurrentSyncDevice).latin1(), remote->getCsum(mCurrentSyncDevice).latin1() ); |
734 | locCh = ( local->lastModified() > mLastCalendarSync ); | 734 | locCh = ( local->lastModified() > mLastCalendarSync ); |
735 | if ( !remCh && ! locCh ) { | 735 | if ( !remCh && ! locCh ) { |
736 | //qDebug("both not changed "); | 736 | //qDebug("both not changed "); |
737 | lastSync = local->lastModified().addDays(1); | 737 | lastSync = local->lastModified().addDays(1); |
738 | if ( mode <= SYNC_PREF_ASK ) | ||
739 | return 0; | ||
738 | } else { | 740 | } else { |
739 | if ( locCh ) { | 741 | if ( locCh ) { |
740 | //qDebug("loc changed %d %s %s", local->revision() , local->lastModified().toString().latin1(), mLastCalendarSync.toString().latin1()); | 742 | //qDebug("loc changed %d %s %s", local->revision() , local->lastModified().toString().latin1(), mLastCalendarSync.toString().latin1()); |
741 | lastSync = local->lastModified().addDays( -1 ); | 743 | lastSync = local->lastModified().addDays( -1 ); |
742 | if ( !remCh ) | 744 | if ( !remCh ) |
743 | remote->setLastModified( lastSync.addDays( -1 ) ); | 745 | remote->setLastModified( lastSync.addDays( -1 ) ); |
744 | } else { | 746 | } else { |
745 | //qDebug(" not loc changed "); | 747 | //qDebug(" not loc changed "); |
746 | lastSync = local->lastModified().addDays( 1 ); | 748 | lastSync = local->lastModified().addDays( 1 ); |
747 | if ( remCh ) | 749 | if ( remCh ) |
748 | remote->setLastModified( lastSync.addDays( 1 ) ); | 750 | remote->setLastModified( lastSync.addDays( 1 ) ); |
749 | 751 | ||