diff options
Diffstat (limited to 'korganizer/kotodoview.cpp')
-rw-r--r-- | korganizer/kotodoview.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 6fe060427..6b511f790 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp @@ -704,14 +704,14 @@ void KOTodoView::changeIncidenceDisplay(Incidence *incidence, int action) } else { // correctly update changes in relations Todo*tqparent = dynamic_cast<Todo*>( todo->relatedTo() ); - KOTodoViewItem*tqparentItem = 0; + KOTodoViewItem*parentItem = 0; if ( tqparent && mTodoMap.tqcontains(tqparent) ) { - tqparentItem = mTodoMap[ tqparent ]; + parentItem = mTodoMap[ tqparent ]; } - if ( todoItem->tqparent() != tqparentItem ) { + if ( todoItem->tqparent() != parentItem ) { // The relations changed - if ( tqparentItem ) { - tqparentItem->insertItem( todoItem ); + if ( parentItem ) { + parentItem->insertItem( todoItem ); } else { mTodoListView->insertItem( todoItem ); } |