-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 | |||
148 | Categories catdb; | 148 | Categories catdb; |
149 | bool firstloop = true; | ||
149 | catdb.load( categoryFileName() ); | 150 | catdb.load( categoryFileName() ); |
@@ -153,2 +154,6 @@ QString ToDoEvent::richText() const | |||
153 | for ( QStringList::Iterator it = catlist.begin(); it != catlist.end(); ++it ) { | 154 | for ( QStringList::Iterator it = catlist.begin(); it != catlist.end(); ++it ) { |
155 | if (!firstloop){ | ||
156 | text += ", "; | ||
157 | } | ||
158 | firstloop = false; | ||
154 | text += catdb.label ("todo", (*it).toInt()); | 159 | text += catdb.label ("todo", (*it).toInt()); |