[Kde-pim] [patch] kontact todo summary widget: fix invalid due days

Jarosław Staniek js at iidea.pl
Thu Apr 10 14:58:56 BST 2008


For review:

QDate::currentDate().daysTo( todo->dtDue().date() ) returns negative number if 
the due date is invalid.

Previous state:
http://img515.imageshack.us/my.php?image=todonoduedateed3.png

After the fix (todosummarywidget.patch), we do not display invalid dates but 
we still show the todo items:

http://img209.imageshack.us/my.php?image=todonoduedatefixpp3.png

Optionally (todosummarywidget2.patch), we can just skip todos not having the 
due date despite having 'hasDueDate' flag set. How about this?

(initially reported as https://www.intevation.de/roundup/kolab/issue2602)

-- 
regards / pozdrawiam, Jaroslaw Staniek
  Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
  Kexi & KOffice (http://www.kexi.pl/en, http://www.koffice.org/kexi)
  KDE Libraries for MS Windows (http://windows.kde.org)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: todosummarywidget.patch
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20080410/a3afc66c/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: todosummarywidget2.patch
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20080410/a3afc66c/attachment-0001.ksh>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list