From 7a439999b9fa2bd7ad76e195cdf95bf5211952cb Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 25 Nov 2005 19:44:15 +0000 Subject: sync --- (limited to 'korganizer/koprefs.cpp') diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index 31ef338..9147af3 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp @@ -536,6 +536,14 @@ int KOPrefs::getFuzzyCalendarID( const QString & name ) return kkf->mCalNumber; kkf = mCalendars.next(); } + QString name2 = name; + name2.replace (QRegExp ("_")," " ); + kkf = mCalendars.first(); + while ( kkf ) { + if ( name2.lower() == kkf->mName.lower()) + return kkf->mCalNumber; + kkf = mCalendars.next(); + } return 0; } QString KOPrefs::calName( int calNum) const -- cgit v0.9.0.2