author | zecke <zecke> | 2002-05-09 15:39:38 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-05-09 15:39:38 (UTC) |
commit | 7999411de407eaaf57cae9e2d0cb3767c714d161 (patch) (side-by-side diff) | |
tree | a29d0744a5aa698c8eb329721d1df651096eeb10 | |
parent | 543122f38cc6e2b711d4afa321f7fed469b76621 (diff) | |
download | opie-7999411de407eaaf57cae9e2d0cb3767c714d161.zip opie-7999411de407eaaf57cae9e2d0cb3767c714d161.tar.gz opie-7999411de407eaaf57cae9e2d0cb3767c714d161.tar.bz2 |
Patch from Stefan Eilers to separate multiple categories by a ,
-rw-r--r-- | libopie/todoevent.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libopie/todoevent.cpp b/libopie/todoevent.cpp index b820150..aa348a2 100644 --- a/libopie/todoevent.cpp +++ b/libopie/todoevent.cpp @@ -148,2 +148,3 @@ QString ToDoEvent::richText() const Categories catdb; + bool firstloop = true; catdb.load( categoryFileName() ); @@ -153,2 +154,6 @@ QString ToDoEvent::richText() const for ( QStringList::Iterator it = catlist.begin(); it != catlist.end(); ++it ) { + if (!firstloop){ + text += ", "; + } + firstloop = false; text += catdb.label ("todo", (*it).toInt()); |