author | zautrix <zautrix> | 2005-06-14 15:00:29 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-14 15:00:29 (UTC) |
commit | 9b2265ffbe8c21fff0b00b376dd3925e4b44168b (patch) (unidiff) | |
tree | 27147c040dc5bbd44f2210955e4df2fb1930fb93 | |
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 | |||
@@ -1855,12 +1855,13 @@ bool CalendarView::loadCalendars() | |||
1855 | } | 1855 | } |
1856 | restoreCalendarSettings(); | 1856 | restoreCalendarSettings(); |
1857 | mCalendar->reInitAlarmSettings(); | 1857 | mCalendar->reInitAlarmSettings(); |
1858 | setSyncEventsReadOnly(); | 1858 | setSyncEventsReadOnly(); |
1859 | updateUnmanagedViews(); | 1859 | updateUnmanagedViews(); |
1860 | updateView(); | 1860 | updateView(); |
1861 | return true; | ||
1861 | } | 1862 | } |
1862 | bool CalendarView::restoreCalendarSettings() | 1863 | bool CalendarView::restoreCalendarSettings() |
1863 | { | 1864 | { |
1864 | QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars; | 1865 | QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars; |
1865 | KopiCalendarFile * cal = calendars.first(); | 1866 | KopiCalendarFile * cal = calendars.first(); |
1866 | while ( cal ) { | 1867 | while ( cal ) { |
@@ -1868,12 +1869,13 @@ bool CalendarView::restoreCalendarSettings() | |||
1868 | mCalendar->setAlarmEnabled( cal->mCalNumber, cal->isAlarmEnabled ); | 1869 | mCalendar->setAlarmEnabled( cal->mCalNumber, cal->isAlarmEnabled ); |
1869 | mCalendar->setReadOnly( cal->mCalNumber, cal->isReadOnly ); | 1870 | mCalendar->setReadOnly( cal->mCalNumber, cal->isReadOnly ); |
1870 | if ( cal->isStandard ) | 1871 | if ( cal->isStandard ) |
1871 | mCalendar->setDefaultCalendar( cal->mCalNumber ); | 1872 | mCalendar->setDefaultCalendar( cal->mCalNumber ); |
1872 | cal = calendars.next(); | 1873 | cal = calendars.next(); |
1873 | } | 1874 | } |
1875 | return true; | ||
1874 | } | 1876 | } |
1875 | void CalendarView::addCalendarId( int id ) | 1877 | void CalendarView::addCalendarId( int id ) |
1876 | { | 1878 | { |
1877 | KopiCalendarFile * cal = KOPrefs::instance()->getCalendar( id ); | 1879 | KopiCalendarFile * cal = KOPrefs::instance()->getCalendar( id ); |
1878 | addCalendar( cal ); | 1880 | addCalendar( cal ); |
1879 | } | 1881 | } |
@@ -2059,12 +2061,13 @@ bool CalendarView::saveCalendars() | |||
2059 | if ( saveCalendar( cal->mFileName ) ) | 2061 | if ( saveCalendar( cal->mFileName ) ) |
2060 | cal->mLoadDt = QDateTime::currentDateTime(); | 2062 | cal->mLoadDt = QDateTime::currentDateTime(); |
2061 | } | 2063 | } |
2062 | cal = calendars.next(); | 2064 | cal = calendars.next(); |
2063 | } | 2065 | } |
2064 | restoreCalendarSettings(); | 2066 | restoreCalendarSettings(); |
2067 | return true; | ||
2065 | } | 2068 | } |
2066 | bool CalendarView::saveCalendar( QString filename ) | 2069 | bool CalendarView::saveCalendar( QString filename ) |
2067 | { | 2070 | { |
2068 | 2071 | ||
2069 | // Store back all unsaved data into calendar object | 2072 | // Store back all unsaved data into calendar object |
2070 | // qDebug("file %s %d ", filename.latin1() , mViewManager->currentView() ); | 2073 | // qDebug("file %s %d ", filename.latin1() , mViewManager->currentView() ); |