author | zautrix <zautrix> | 2005-06-14 15:00:29 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-14 15:00:29 (UTC) |
commit | 9b2265ffbe8c21fff0b00b376dd3925e4b44168b (patch) (side-by-side diff) | |
tree | 27147c040dc5bbd44f2210955e4df2fb1930fb93 /korganizer | |
parent | d38f601cfdb510fc39dd798af44a50c7958d7be8 (diff) | |
download | kdepimpi-9b2265ffbe8c21fff0b00b376dd3925e4b44168b.zip kdepimpi-9b2265ffbe8c21fff0b00b376dd3925e4b44168b.tar.gz kdepimpi-9b2265ffbe8c21fff0b00b376dd3925e4b44168b.tar.bz2 |
compile fixes
-rw-r--r-- | korganizer/calendarview.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index b0be340..dd4ea41 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -1853,29 +1853,31 @@ bool CalendarView::loadCalendars() addCalendar( cal ); cal = calendars.next(); } restoreCalendarSettings(); mCalendar->reInitAlarmSettings(); setSyncEventsReadOnly(); updateUnmanagedViews(); updateView(); + return true; } bool CalendarView::restoreCalendarSettings() { QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars; KopiCalendarFile * cal = calendars.first(); while ( cal ) { mCalendar->setCalendarEnabled( cal->mCalNumber,cal->isEnabled ); mCalendar->setAlarmEnabled( cal->mCalNumber, cal->isAlarmEnabled ); mCalendar->setReadOnly( cal->mCalNumber, cal->isReadOnly ); if ( cal->isStandard ) mCalendar->setDefaultCalendar( cal->mCalNumber ); cal = calendars.next(); } + return true; } void CalendarView::addCalendarId( int id ) { KopiCalendarFile * cal = KOPrefs::instance()->getCalendar( id ); addCalendar( cal ); } bool CalendarView::addCalendar( KopiCalendarFile * cal ) { @@ -2057,16 +2059,17 @@ bool CalendarView::saveCalendars() mCalendar->setDefaultCalendar( cal->mCalNumber ); mCalendar->setDefaultCalendarEnabledOnly(); if ( saveCalendar( cal->mFileName ) ) cal->mLoadDt = QDateTime::currentDateTime(); } cal = calendars.next(); } restoreCalendarSettings(); + return true; } bool CalendarView::saveCalendar( QString filename ) { // Store back all unsaved data into calendar object // qDebug("file %s %d ", filename.latin1() , mViewManager->currentView() ); if ( mViewManager->currentView() ) mViewManager->currentView()->flushView(); |