summaryrefslogtreecommitdiffabout
path: root/korganizer/koprefs.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/koprefs.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koprefs.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp
index 179f586..bc6aae4 100644
--- a/korganizer/koprefs.cpp
+++ b/korganizer/koprefs.cpp
@@ -442,7 +442,7 @@ void KOPrefs::usrReadConfig()
if ( numCals == 0 ) {
KopiCalendarFile *kkf = getNewCalendar();
kkf->isStandard = true;
- kkf->mName = i18n("Standard Calendar");
+ kkf->mName = i18n("Standard");
kkf->mFileName = locateLocal( "data", "korganizer/mycalendar.ics" );
}
while ( mNextAvailableCalendar <= numCals ) {
@@ -458,13 +458,16 @@ void KOPrefs::usrReadConfig()
kkf->mDefaultColor = config()->readColorEntry( prefix+"_Color",&mEventColor);
if ( kkf->mCalNumber == 1 ) {
kkf->mFileName = locateLocal( "data", "korganizer/mycalendar.ics" );
- //kkf->mName = i18n("Standard Calendar");
}
}
KPimPrefs::usrReadConfig();
}
+KopiCalendarFile * KOPrefs::getCalendar( int num )
+{
+ return mDefCalColors[num-1];
+}
KopiCalendarFile * KOPrefs::getNewCalendar()
{