author | Michael Krelin <hacker@klever.net> | 2008-01-28 23:33:00 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-01-28 23:33:00 (UTC) |
commit | 64a94e6b6ee261c21c68709134631a16b39a0256 (patch) (side-by-side diff) | |
tree | 12e7693f1b665711c3487ae2779b2469ea8e1499 /korganizer | |
parent | 1c5369f3785b118ff4d18c4940913b800dd201fb (diff) | |
download | kdepimpi-64a94e6b6ee261c21c68709134631a16b39a0256.zip kdepimpi-64a94e6b6ee261c21c68709134631a16b39a0256.tar.gz kdepimpi-64a94e6b6ee261c21c68709134631a16b39a0256.tar.bz2 |
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | korganizer/koagendaitem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp index 0f9a38f..d38cb00 100644 --- a/korganizer/koagendaitem.cpp +++ b/korganizer/koagendaitem.cpp @@ -122,3 +122,4 @@ void KOAgendaItem::initColor () QStringList categories = mIncidence->categories(); - QString cat = categories.first(); + QString cat; + if(!categories.isEmpty()) cat = categories.first(); if (cat.isEmpty()) { |