author | zautrix <zautrix> | 2005-11-25 19:44:15 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-11-25 19:44:15 (UTC) |
commit | 7a439999b9fa2bd7ad76e195cdf95bf5211952cb (patch) (side-by-side diff) | |
tree | 88c7e5771ed955004b6ef3b74c339e6b44b8a7ad /korganizer/koprefs.cpp | |
parent | 231e6f8215bbc4f7e301965f8f3c650e44586ec9 (diff) | |
download | kdepimpi-7a439999b9fa2bd7ad76e195cdf95bf5211952cb.zip kdepimpi-7a439999b9fa2bd7ad76e195cdf95bf5211952cb.tar.gz kdepimpi-7a439999b9fa2bd7ad76e195cdf95bf5211952cb.tar.bz2 |
sync
-rw-r--r-- | korganizer/koprefs.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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 |