author | zautrix <zautrix> | 2005-07-02 16:54:00 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-02 16:54:00 (UTC) |
commit | 78866028c185f4227bfb653ee2050d7feb2e2b78 (patch) (unidiff) | |
tree | 899b85d02584992f608da22f48076f590483d2bd /korganizer/kofilterview.cpp | |
parent | 20c9e9cb71ad64aebfa27157bb152ece4e34c00a (diff) | |
download | kdepimpi-78866028c185f4227bfb653ee2050d7feb2e2b78.zip kdepimpi-78866028c185f4227bfb653ee2050d7feb2e2b78.tar.gz kdepimpi-78866028c185f4227bfb653ee2050d7feb2e2b78.tar.bz2 |
fixxxxxxxx
-rw-r--r-- | korganizer/kofilterview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp index 1335d7e..3f08ef8 100644 --- a/korganizer/kofilterview.cpp +++ b/korganizer/kofilterview.cpp | |||
@@ -152,33 +152,33 @@ void KOCalEditView::selectStdCal( int id ) | |||
152 | void KOCalEditView::selectCalAlarm(int id ,bool b ) | 152 | void KOCalEditView::selectCalAlarm(int id ,bool b ) |
153 | { | 153 | { |
154 | KOPrefs::instance()->getCalendar( id )->isAlarmEnabled = b; | 154 | KOPrefs::instance()->getCalendar( id )->isAlarmEnabled = b; |
155 | emit alarmEnabled ( id , b ); | 155 | emit alarmEnabled ( id , b ); |
156 | emit needsUpdate(); | 156 | emit needsUpdate(); |
157 | } | 157 | } |
158 | void KOCalEditView::selectReadOnly(int id ,bool b ) | 158 | void KOCalEditView::selectReadOnly(int id ,bool b ) |
159 | { | 159 | { |
160 | KOPrefs::instance()->getCalendar( id )->isReadOnly = b; | ||
161 | emit calendarReadonly ( id , b ); | ||
162 | if ( KOPrefs::instance()->getCalendar( id )->isStandard && b ) { | 160 | if ( KOPrefs::instance()->getCalendar( id )->isStandard && b ) { |
163 | findNewStandard(); | 161 | findNewStandard(); |
164 | } else { | 162 | } else { |
165 | if ( !b ){ | 163 | if ( !b ){ |
166 | KopiCalendarFile * kkf = KOPrefs::instance()->mCalendars.first(); | 164 | KopiCalendarFile * kkf = KOPrefs::instance()->mCalendars.first(); |
167 | while ( kkf ) { | 165 | while ( kkf ) { |
168 | if (kkf->isReadOnly && kkf->isStandard ) { | 166 | if (kkf->isReadOnly && kkf->isStandard ) { |
169 | selectStdCal( id ); | 167 | selectStdCal( id ); |
170 | break; | 168 | break; |
171 | } | 169 | } |
172 | kkf = KOPrefs::instance()->mCalendars.next(); | 170 | kkf = KOPrefs::instance()->mCalendars.next(); |
173 | } | 171 | } |
174 | } | 172 | } |
175 | } | 173 | } |
176 | mStdandardB.at(id-1)->setEnabled( !b ); | 174 | mStdandardB.at(id-1)->setEnabled( !b ); |
175 | emit calendarReadonly ( id , b ); | ||
176 | KOPrefs::instance()->getCalendar( id )->isReadOnly = b; | ||
177 | emit needsUpdate(); | 177 | emit needsUpdate(); |
178 | 178 | ||
179 | } | 179 | } |
180 | void KOCalEditView::findNewStandard() | 180 | void KOCalEditView::findNewStandard() |
181 | { | 181 | { |
182 | bool found = false; | 182 | bool found = false; |
183 | KopiCalendarFile * kkf = KOPrefs::instance()->mCalendars.first(); | 183 | KopiCalendarFile * kkf = KOPrefs::instance()->mCalendars.first(); |
184 | while ( kkf ) { | 184 | while ( kkf ) { |