| Summary: | Sub-todos should inherit categories from parent | ||
|---|---|---|---|
| Product: | [Applications] korganizer | Reporter: | ieure |
| Component: | general | Assignee: | Cornelius Schumacher <schumacher> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Debian testing | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
ieure
2002-11-18 16:45:21 UTC
I second that, furthermore, due date/time, attendees & access should also be inherited (if only for a starting point, it'd be very helpful CVS commit by bram: Newly created subtodos will inherit properties like category and date from it's parent. (wish #50911). CCMAIL: 50911-done@bugs.kde.org M +11 -2 kotodoeditor.cpp 1.54 --- kdepim/korganizer/kotodoeditor.cpp #1.53:1.54 @@ -253,5 +253,14 @@ void KOTodoEditor::setDefaults( QDateTim mRelatedTodo = relatedEvent; + // inherit some properties from parent todo + if ( mRelatedTodo ) { + mGeneral->setCategories( mRelatedTodo->categoriesStr() ); + mCategoryDialog->setSelected( mRelatedTodo->categories() ); + if ( mRelatedTodo->hasDueDate() ) + mGeneral->setDefaults( mRelatedTodo->dtDue(), allDay ); + } + else mGeneral->setDefaults( due, allDay ); + mDetails->setDefaults(); mAttachments->setDefaults(); |