summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kofilterview.cpp4
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
@@ -215,18 +215,21 @@ void KOCalEditView::setColor( const QColor& c, int id )
215 emit needsUpdate(); 215 emit needsUpdate();
216} 216}
217void KOCalEditView::deleteCal( int id ) 217void KOCalEditView::deleteCal( int id )
218{ 218{
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}
227void KOCalEditView::infoCal( int id ) 230void KOCalEditView::infoCal( int id )
228{ 231{
229 QString name = KOPrefs::instance()->getCalendar( id )->mName; 232 QString name = KOPrefs::instance()->getCalendar( id )->mName;
230 QString file = KOPrefs::instance()->getCalendar( id )->mFileName; 233 QString file = KOPrefs::instance()->getCalendar( id )->mFileName;
231 KMessageBox::information( this, i18n("The calendar <b>%1</b> is displaying file <b>%2</b>").arg(name).arg(file) ); 234 KMessageBox::information( this, i18n("The calendar <b>%1</b> is displaying file <b>%2</b>").arg(name).arg(file) );
232} 235}
@@ -346,16 +349,17 @@ void KOCalEditView::addCal()
346 KMessageBox::information( this, i18n("File does not exist!\nNo calendar added!")); 349 KMessageBox::information( this, i18n("File does not exist!\nNo calendar added!"));
347 return; 350 return;
348 } 351 }
349 KopiCalendarFile * kkf = KOPrefs::instance()->getNewCalendar(); 352 KopiCalendarFile * kkf = KOPrefs::instance()->getNewCalendar();
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}
355void KOCalEditView::enableAll() 359void KOCalEditView::enableAll()
356{ 360{
357 toggleList( mEnabledB ); 361 toggleList( mEnabledB );
358} 362}
359void KOCalEditView::enableAlarm() 363void KOCalEditView::enableAlarm()
360{ 364{
361 toggleList( mAlarmB ); 365 toggleList( mAlarmB );