-rw-r--r-- | korganizer/calendarview.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index a08f243..326db88 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -926,9 +926,16 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int | |||
926 | QPtrList<Event> eventLSyncSharp = local->getExternLastSyncEvents(); | 926 | QPtrList<Event> eventLSyncSharp = local->getExternLastSyncEvents(); |
927 | bool fullDateRange = false; | 927 | bool fullDateRange = false; |
928 | local->resetTempSyncStat(); | 928 | local->resetTempSyncStat(); |
929 | if ( mSyncKDE ) | ||
930 | remote->resetPilotStat(1); | ||
931 | mLastCalendarSync = QDateTime::currentDateTime(); | 929 | mLastCalendarSync = QDateTime::currentDateTime(); |
930 | if ( mSyncKDE ) { | ||
931 | remote->resetPilotStat(1); | ||
932 | if ( KSyncManager::mRequestedSyncEvent.isValid() ) { | ||
933 | mLastCalendarSync = KSyncManager::mRequestedSyncEvent; | ||
934 | qDebug("using extern time for calendar sync: %s ", mLastCalendarSync.toString().latin1() ); | ||
935 | } else { | ||
936 | qDebug("ERROR: KSyncManager::mRequestedSyncEvent has invalid datatime "); | ||
937 | } | ||
938 | } | ||
932 | QDateTime modifiedCalendar = mLastCalendarSync;; | 939 | QDateTime modifiedCalendar = mLastCalendarSync;; |
933 | eventLSync = getLastSyncEvent(); | 940 | eventLSync = getLastSyncEvent(); |
934 | eventR = remote->event("last-syncEvent-"+mCurrentSyncName ); | 941 | eventR = remote->event("last-syncEvent-"+mCurrentSyncName ); |