summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-01-17 12:47:46 (UTC)
committer zautrix <zautrix>2005-01-17 12:47:46 (UTC)
commit214b82c86bd5365d7a5fc786c8c9c7231ec6dc77 (patch) (side-by-side diff)
tree9b6052411933ccd1a15428c8f747f0143db4690d
parentba5e5a22ad492f798b2626026cc1838b731e055b (diff)
downloadkdepimpi-214b82c86bd5365d7a5fc786c8c9c7231ec6dc77.zip
kdepimpi-214b82c86bd5365d7a5fc786c8c9c7231ec6dc77.tar.gz
kdepimpi-214b82c86bd5365d7a5fc786c8c9c7231ec6dc77.tar.bz2
small cal fix
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/calendarview.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index 685bb60..da1edea 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -924,6 +924,8 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int
int deletedEventL = 0;
int changedLocal = 0;
int changedRemote = 0;
+ int filteredIN = 0;
+ int filteredOUT = 0;
//QPtrList<Event> el = local->rawEvents();
Event* eventR;
QString uid;
@@ -1101,6 +1103,8 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int
++deletedEventR;
}
}
+ } else {
+ ++filteredIN;
}
}
}
@@ -1128,12 +1132,11 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int
skipIncidence = true;
if ( mGlobalSyncMode == SYNC_MODE_EXTERNAL && inL->type() == "Journal" )
skipIncidence = true;
- if ( filterOUT && ! filterOUT->filterCalendarItem( inL ) ){
- skipIncidence = true;
- }
if ( !skipIncidence ) {
inR = remote->incidence( uid );
- if ( ! inR ) { // no conflict ********** add or delete local
+ if ( ! inR ) {
+ if ( !filterOUT || filterOUT->filterCalendarItem( inL ) ){
+ // no conflict ********** add or delete local
if ( mGlobalSyncMode == SYNC_MODE_EXTERNAL ) {
if ( !inL->getID(mCurrentSyncDevice).isEmpty() && mode != 4 ) {
checkExternSyncEvent(eventLSyncSharp, inL);
@@ -1166,6 +1169,9 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int
}
}
}
+ } else {
+ ++filteredOUT;
+ }
}
}
inL = el.next();
@@ -1218,7 +1224,7 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int
else
delete eventRSync;
QString mes;
- mes .sprintf( i18n("Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n"),addedEvent, addedEventR, changedLocal, changedRemote, deletedEventL, deletedEventR );
+ mes .sprintf( i18n("Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n %d incoming filtered out\n %d outgoing filtered out\n"),addedEvent, addedEventR, changedLocal, changedRemote, deletedEventL, deletedEventR, filteredIN, filteredOUT );
QString delmess;
if ( delFut ) {
delmess.sprintf( i18n("%d items skipped on remote,\nbecause they are more\nthan %d weeks in the past or\nmore than %d weeks in the future.\nAfter skipping, remote has\n%d calendar/todo items."), delFut,mSyncManager->mWriteBackInPast,mSyncManager->mWriteBackInFuture, remRem-delFut);