summaryrefslogtreecommitdiffabout
path: root/libkcal/calendarlocal.cpp
authorzautrix <zautrix>2005-03-15 12:34:42 (UTC)
committer zautrix <zautrix>2005-03-15 12:34:42 (UTC)
commit2a92f30dbb2a2bfcee223d949a1672060b76f6ab (patch) (unidiff)
tree893e0cbbff72a9ec5af40925d2c38397bbf2177a /libkcal/calendarlocal.cpp
parent93d18021da7aa07f055b800def773b31e54a98a9 (diff)
downloadkdepimpi-2a92f30dbb2a2bfcee223d949a1672060b76f6ab.zip
kdepimpi-2a92f30dbb2a2bfcee223d949a1672060b76f6ab.tar.gz
kdepimpi-2a92f30dbb2a2bfcee223d949a1672060b76f6ab.tar.bz2
crash fix when removing sync info
Diffstat (limited to 'libkcal/calendarlocal.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkcal/calendarlocal.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libkcal/calendarlocal.cpp b/libkcal/calendarlocal.cpp
index 0eba6a9..52c298b 100644
--- a/libkcal/calendarlocal.cpp
+++ b/libkcal/calendarlocal.cpp
@@ -242,7 +242,8 @@ void CalendarLocal::removeSyncInfo( QString syncProfile)
242 } 242 }
243 } else { 243 } else {
244 Event *lse = event( "last-syncEvent-"+ syncProfile); 244 Event *lse = event( "last-syncEvent-"+ syncProfile);
245 deleteIncidence ( lse ); 245 if ( lse )
246 deleteIncidence ( lse );
246 } 247 }
247} 248}
248QPtrList<Event> CalendarLocal::getExternLastSyncEvents() 249QPtrList<Event> CalendarLocal::getExternLastSyncEvents()