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 | |
parent | 20c9e9cb71ad64aebfa27157bb152ece4e34c00a (diff) | |
download | kdepimpi-78866028c185f4227bfb653ee2050d7feb2e2b78.zip kdepimpi-78866028c185f4227bfb653ee2050d7feb2e2b78.tar.gz kdepimpi-78866028c185f4227bfb653ee2050d7feb2e2b78.tar.bz2 |
fixxxxxxxx
-rw-r--r-- | korganizer/calendarview.cpp | 9 | ||||
-rw-r--r-- | korganizer/calendarview.h | 1 | ||||
-rw-r--r-- | korganizer/kofilterview.cpp | 4 |
3 files changed, 11 insertions, 3 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 5c88abd..6746de2 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -470,3 +470,3 @@ void CalendarView::init() | |||
470 | connect( mCalEditView, SIGNAL( alarmEnabled(int,bool) ),mCalendar, SLOT( setAlarmEnabled(int,bool)) ); | 470 | connect( mCalEditView, SIGNAL( alarmEnabled(int,bool) ),mCalendar, SLOT( setAlarmEnabled(int,bool)) ); |
471 | connect( mCalEditView, SIGNAL( calendarReadonly(int,bool) ),mCalendar, SLOT( setReadOnly(int,bool)) ); | 471 | connect( mCalEditView, SIGNAL( calendarReadonly(int,bool) ),this, SLOT( setCalReadOnly(int,bool)) ); |
472 | connect( mCalEditView, SIGNAL( setCalendarDefault(int) ),mCalendar, SLOT( setDefaultCalendar(int)) ); | 472 | connect( mCalEditView, SIGNAL( setCalendarDefault(int) ),mCalendar, SLOT( setDefaultCalendar(int)) ); |
@@ -656,2 +656,9 @@ CalendarView::~CalendarView() | |||
656 | } | 656 | } |
657 | void CalendarView::setCalReadOnly( int id, bool readO ) | ||
658 | { | ||
659 | if ( readO ) { | ||
660 | emit save(); | ||
661 | } | ||
662 | mCalendar->setReadOnly( id, readO ); | ||
663 | } | ||
657 | void CalendarView::setScrollBarStep(int val ) | 664 | void CalendarView::setScrollBarStep(int val ) |
diff --git a/korganizer/calendarview.h b/korganizer/calendarview.h index 651194b..a5f230a 100644 --- a/korganizer/calendarview.h +++ b/korganizer/calendarview.h | |||
@@ -202,2 +202,3 @@ class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Obser | |||
202 | public slots: | 202 | public slots: |
203 | void setCalReadOnly( int id, bool readO ); | ||
203 | void checkAlarms(); | 204 | void checkAlarms(); |
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp index 1335d7e..3f08ef8 100644 --- a/korganizer/kofilterview.cpp +++ b/korganizer/kofilterview.cpp | |||
@@ -159,4 +159,2 @@ 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 ) { |
@@ -176,2 +174,4 @@ void KOCalEditView::selectReadOnly(int id ,bool b ) | |||
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(); |