author | zautrix <zautrix> | 2005-07-04 15:52:09 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-04 15:52:09 (UTC) |
commit | 226171366bc79927988eac10e0bf7fc3f7faea69 (patch) (side-by-side diff) | |
tree | fc2aef43c88d35bb4b59002bdfa25f7c45094f91 /korganizer/koprefs.cpp | |
parent | 7221ff029af217ae703e8217333bd9b170203181 (diff) | |
download | kdepimpi-226171366bc79927988eac10e0bf7fc3f7faea69.zip kdepimpi-226171366bc79927988eac10e0bf7fc3f7faea69.tar.gz kdepimpi-226171366bc79927988eac10e0bf7fc3f7faea69.tar.bz2 |
fixx
-rw-r--r-- | korganizer/koprefs.cpp | 10 |
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 @@ -502,4 +502,14 @@ void KOPrefs::deleteCalendar( int num ) } } +int KOPrefs::getCalendarID( const QString & name ) +{ + KopiCalendarFile * kkf = mCalendars.first(); + while ( kkf ) { + if ( name == kkf->mName) + return kkf->mCalNumber; + kkf = mCalendars.next(); + } + return 1; +} QString KOPrefs::calName( int calNum) const { |