summaryrefslogtreecommitdiffabout
path: root/korganizer/calendarview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/calendarview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index d5d31e2..258bd43 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -1261,7 +1261,9 @@ void CalendarView::syncExternal( int mode )
QPtrList<Incidence> iL = mCalendar->rawIncidences();
Incidence* inc = iL.first();
- while ( inc ) {
- inc->removeID(mCurrentSyncDevice);
- inc = iL.next();
+ if ( phoneFormat ) {
+ while ( inc ) {
+ inc->removeID(mCurrentSyncDevice);
+ inc = iL.next();
+ }
}
#ifndef DESKTOP_VERSION