summaryrefslogtreecommitdiffabout
path: root/korganizer
authorzautrix <zautrix>2005-06-14 09:10:19 (UTC)
committer zautrix <zautrix>2005-06-14 09:10:19 (UTC)
commitbd2fd522c0ba5c5a7897df0941032a9af9842dfc (patch) (side-by-side diff)
treed76d64810cbcde88f0b56d5924ac4dd52e9abe13 /korganizer
parent1dccb9dd9ea32989ecec33c72a3ebd873dce048e (diff)
downloadkdepimpi-bd2fd522c0ba5c5a7897df0941032a9af9842dfc.zip
kdepimpi-bd2fd522c0ba5c5a7897df0941032a9af9842dfc.tar.gz
kdepimpi-bd2fd522c0ba5c5a7897df0941032a9af9842dfc.tar.bz2
fixxeess
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kofilterview.cpp14
-rw-r--r--korganizer/kofilterview.h2
2 files changed, 11 insertions, 5 deletions
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp
index 9633b2c..3333ac2 100644
--- a/korganizer/kofilterview.cpp
+++ b/korganizer/kofilterview.cpp
@@ -208,3 +208,9 @@ void KOCalEditView::selectReadOnly(int id ,bool b )
emit calendarReadonly ( id , b );
+ if ( KOPrefs::instance()->getCalendar( id )->isStandard && b && id > 1 ) {
+ KOPrefs::instance()->getCalendar( id )->isStandard = false;
+ KOPrefs::instance()->getCalendar( 1 )->isStandard = true;
+ emit setCalendarDefault ( 1 );
+ }
emit needsUpdate();
+ QTimer::singleShot( 0, this, SLOT ( readConfig() ) );
@@ -227,3 +233,3 @@ void KOCalEditView::deleteCal( int id )
emit needsUpdate();
- readConfig();
+ QTimer::singleShot( 0, this, SLOT ( readConfig() ) );
}
@@ -236,4 +242,4 @@ void KOCalEditView::infoCal( int id )
emit calendarAdded( id );
- readConfig();
emit needsUpdate();
+ QTimer::singleShot( 0, this, SLOT ( readConfig() ) );
}
@@ -304,3 +310,3 @@ void KOCalEditView::readConfig()
connect (cb, SIGNAL (selectNum(int,bool)), SLOT ( selectStdCal(int,bool) ) );
- if ( kkf->mErrorOnLoad )
+ if ( kkf->mErrorOnLoad || kkf->isReadOnly )
cb->setEnabled( false );
@@ -370,4 +376,4 @@ void KOCalEditView::addCal()
emit calendarAdded( kkf->mCalNumber );
- readConfig();
emit needsUpdate();
+ QTimer::singleShot( 0, this, SLOT ( readConfig() ) );
}
diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h
index 4a0cd8a..1849e36 100644
--- a/korganizer/kofilterview.h
+++ b/korganizer/kofilterview.h
@@ -119,3 +119,2 @@ class KOCalEditView : public QWidget
- void readConfig();
public slots:
@@ -133,2 +132,3 @@ class KOCalEditView : public QWidget
void infoCal(int) ;
+ void readConfig();
signals: