summaryrefslogtreecommitdiffabout
path: root/korganizer/koprefs.cpp
authorzautrix <zautrix>2005-07-04 15:52:09 (UTC)
committer zautrix <zautrix>2005-07-04 15:52:09 (UTC)
commit226171366bc79927988eac10e0bf7fc3f7faea69 (patch) (unidiff)
treefc2aef43c88d35bb4b59002bdfa25f7c45094f91 /korganizer/koprefs.cpp
parent7221ff029af217ae703e8217333bd9b170203181 (diff)
downloadkdepimpi-226171366bc79927988eac10e0bf7fc3f7faea69.zip
kdepimpi-226171366bc79927988eac10e0bf7fc3f7faea69.tar.gz
kdepimpi-226171366bc79927988eac10e0bf7fc3f7faea69.tar.bz2
fixx
Diffstat (limited to 'korganizer/koprefs.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koprefs.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp
index bb3d720..a886735 100644
--- a/korganizer/koprefs.cpp
+++ b/korganizer/koprefs.cpp
@@ -501,6 +501,16 @@ void KOPrefs::deleteCalendar( int num )
501 kkf = mCalendars.next(); 501 kkf = mCalendars.next();
502 } 502 }
503} 503}
504int KOPrefs::getCalendarID( const QString & name )
505{
506 KopiCalendarFile * kkf = mCalendars.first();
507 while ( kkf ) {
508 if ( name == kkf->mName)
509 return kkf->mCalNumber;
510 kkf = mCalendars.next();
511 }
512 return 1;
513}
504QString KOPrefs::calName( int calNum) const 514QString KOPrefs::calName( int calNum) const
505{ 515{
506 return (mDefCalColors[calNum-1])->mName; 516 return (mDefCalColors[calNum-1])->mName;