Summary: | local directory calendar resource not working | ||
---|---|---|---|
Product: | [Applications] korganizer | Reporter: | Duncan Mac-Vicar Prett <duncan> |
Component: | general | Assignee: | Reinhold Kainhofer <reinhold> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Duncan Mac-Vicar Prett
2004-12-03 07:05:05 UTC
Hi Duncan, Thanks for the report, but I'm unable to reproduce that problem with CVS HEAD... I have a local dir resource (as the only enabled resource in korganizer), and I use "File->Import->Import Calendar" and then choose merge into existing calendar. The events from the ics file correctly appear in korganizer and as files in the directory. I can uncheck the resource and check it again, and the events will appear. Also, if I completely restart korganizer... Cheers, Reinhold I have the same problem. File seems to import fine, but after unselecting and then reselecting resource, events disappear. I can still see the files in the dir though. Cheers, Alan. Hi, i had the same problem. It seems that a trailing '/' is required in the path. Otherwise, KStandardDirs::exists( dirName ) [kdepim-3.3.2/libkcal/resourcelocaldir.cpp line 132] checks not for a directory but a file leading to not reading the content of the folder. Martin Koehn On Tuesday 11 January 2005 14:16, Martin Koehn wrote: > ------- Additional Comments From koehn ikr uni-stuttgart de 2005-01-11 > 18:16 ------- Hi, > i had the same problem. It seems that a trailing '/' is required in the > path. Otherwise, KStandardDirs::exists( dirName ) > [kdepim-3.3.2/libkcal/resourcelocaldir.cpp line 132] checks not for a > directory but a file leading to not reading the content of the folder. > > Martin Koehn Confirmed, I added a "/" manually to the resource cfg and worked. Then it is a bug because you select the folder using the KDirSelector, which doesn't add the needed "/" Duncan CVS commit by dmacvicar: Make find() find the directory no matter if the dir selector dialog adds the trailing "/" or not. BUG: 94310 M +1 -1 resourcelocaldir.cpp 1.26 --- kdepim/libkcal/resourcelocaldir.cpp #1.25:1.26 @@ -117,5 +117,5 @@ bool ResourceLocalDir::doLoad() bool success = true; - if ( !KStandardDirs::exists( dirName ) ) { + if ( !( KStandardDirs::exists( dirName ) || KStandardDirs::exists( dirName + "/") ) ) { kdDebug(5800) << "ResourceLocalDir::load(): Directory '" << dirName << "' doesn't exist yet. Creating it..." << endl; |