summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-06-13 14:12:46 (UTC)
committer zautrix <zautrix>2005-06-13 14:12:46 (UTC)
commit0000f74badd326f62620d818a5e5d9944e55bda0 (patch) (side-by-side diff)
treee5de7a34f12efab3a4fa27f6534a06a4cbf406fe
parent56de219c5ce910a470a01a0e5003d1a113837ef4 (diff)
downloadkdepimpi-0000f74badd326f62620d818a5e5d9944e55bda0.zip
kdepimpi-0000f74badd326f62620d818a5e5d9944e55bda0.tar.gz
kdepimpi-0000f74badd326f62620d818a5e5d9944e55bda0.tar.bz2
fixxii
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
@@ -217,14 +217,17 @@ void KOCalEditView::setColor( const QColor& c, int id )
void KOCalEditView::deleteCal( int id )
{
KopiCalendarFile * kkf = KOPrefs::instance()->getCalendar( id );
QString name = kkf->mName;
QString file = kkf->mFileName;
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;
+ if ( kkf->isStandard )
+ selectStdCal( 1, true );
emit removeCalendar ( id );
KOPrefs::instance()->mCalendars.remove ( kkf );
+ emit needsUpdate();
readConfig();
}
void KOCalEditView::infoCal( int id )
{
QString name = KOPrefs::instance()->getCalendar( id )->mName;
QString file = KOPrefs::instance()->getCalendar( id )->mFileName;
@@ -348,12 +351,13 @@ void KOCalEditView::addCal()
}
KopiCalendarFile * kkf = KOPrefs::instance()->getNewCalendar();
kkf->mName = name;
kkf->mFileName = file;
emit calendarAdded( kkf->mCalNumber );
readConfig();
+ emit needsUpdate();
}
void KOCalEditView::enableAll()
{
toggleList( mEnabledB );
}
void KOCalEditView::enableAlarm()