author | zautrix <zautrix> | 2005-06-13 14:12:46 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-13 14:12:46 (UTC) |
commit | 0000f74badd326f62620d818a5e5d9944e55bda0 (patch) (unidiff) | |
tree | e5de7a34f12efab3a4fa27f6534a06a4cbf406fe | |
parent | 56de219c5ce910a470a01a0e5003d1a113837ef4 (diff) | |
download | kdepimpi-0000f74badd326f62620d818a5e5d9944e55bda0.zip kdepimpi-0000f74badd326f62620d818a5e5d9944e55bda0.tar.gz kdepimpi-0000f74badd326f62620d818a5e5d9944e55bda0.tar.bz2 |
fixxii
-rw-r--r-- | korganizer/kofilterview.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp index 2b16347..361eec8 100644 --- a/korganizer/kofilterview.cpp +++ b/korganizer/kofilterview.cpp | |||
@@ -219,10 +219,13 @@ void KOCalEditView::deleteCal( int id ) | |||
219 | KopiCalendarFile * kkf = KOPrefs::instance()->getCalendar( id ); | 219 | KopiCalendarFile * kkf = KOPrefs::instance()->getCalendar( id ); |
220 | QString name = kkf->mName; | 220 | QString name = kkf->mName; |
221 | QString file = kkf->mFileName; | 221 | QString file = kkf->mFileName; |
222 | if ( KMessageBox::warningContinueCancel( this, i18n("The calendar <b>%1</b> is displaying file <b>%2</b><tr> Do you want to remove this calendar from KO/Pi? (The file is not removed, of course!)").arg(name).arg(file) ) != KMessageBox::Continue ) return; | 222 | if ( KMessageBox::warningContinueCancel( this, i18n("The calendar <b>%1</b> is displaying file <b>%2</b><tr> Do you want to remove this calendar from KO/Pi? (The file is not removed, of course!)").arg(name).arg(file) ) != KMessageBox::Continue ) return; |
223 | if ( kkf->isStandard ) | ||
224 | selectStdCal( 1, true ); | ||
223 | emit removeCalendar ( id ); | 225 | emit removeCalendar ( id ); |
224 | KOPrefs::instance()->mCalendars.remove ( kkf ); | 226 | KOPrefs::instance()->mCalendars.remove ( kkf ); |
227 | emit needsUpdate(); | ||
225 | readConfig(); | 228 | readConfig(); |
226 | } | 229 | } |
227 | void KOCalEditView::infoCal( int id ) | 230 | void KOCalEditView::infoCal( int id ) |
228 | { | 231 | { |
@@ -350,8 +353,9 @@ void KOCalEditView::addCal() | |||
350 | kkf->mName = name; | 353 | kkf->mName = name; |
351 | kkf->mFileName = file; | 354 | kkf->mFileName = file; |
352 | emit calendarAdded( kkf->mCalNumber ); | 355 | emit calendarAdded( kkf->mCalNumber ); |
353 | readConfig(); | 356 | readConfig(); |
357 | emit needsUpdate(); | ||
354 | } | 358 | } |
355 | void KOCalEditView::enableAll() | 359 | void KOCalEditView::enableAll() |
356 | { | 360 | { |
357 | toggleList( mEnabledB ); | 361 | toggleList( mEnabledB ); |