From 226171366bc79927988eac10e0bf7fc3f7faea69 Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 04 Jul 2005 15:52:09 +0000 Subject: fixx --- (limited to 'korganizer/koprefs.cpp') 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 ) kkf = mCalendars.next(); } } +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 { return (mDefCalColors[calNum-1])->mName; -- cgit v0.9.0.2