-rw-r--r-- | korganizer/kotodoview.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 22486ba..1fb480d 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp | |||
@@ -1031,24 +1031,30 @@ void KOTodoView::setAllClose() | |||
1031 | void KOTodoView::setOpen( QListViewItem* item, bool setOpenI) | 1031 | void KOTodoView::setOpen( QListViewItem* item, bool setOpenI) |
1032 | { | 1032 | { |
1033 | 1033 | ||
1034 | while ( item ) { | 1034 | while ( item ) { |
1035 | setOpen( item->firstChild(), setOpenI ); | 1035 | setOpen( item->firstChild(), setOpenI ); |
1036 | item->setOpen( setOpenI ); | 1036 | item->setOpen( setOpenI ); |
1037 | item = item->nextSibling(); | 1037 | item = item->nextSibling(); |
1038 | } | 1038 | } |
1039 | } | 1039 | } |
1040 | 1040 | ||
1041 | void KOTodoView::setAllFlat() | 1041 | void KOTodoView::setAllFlat() |
1042 | { | 1042 | { |
1043 | if ( isFlatDisplay ) { | ||
1044 | isFlatDisplay = false; | ||
1045 | mPopupMenu->setItemChecked( 8,false ); | ||
1046 | updateView(); | ||
1047 | return; | ||
1048 | } | ||
1043 | pendingSubtodo = 0; | 1049 | pendingSubtodo = 0; |
1044 | if ( mBlockUpdate ) { | 1050 | if ( mBlockUpdate ) { |
1045 | return; | 1051 | return; |
1046 | } | 1052 | } |
1047 | mPopupMenu->setItemChecked( 8,true ); | 1053 | mPopupMenu->setItemChecked( 8,true ); |
1048 | isFlatDisplay = true; | 1054 | isFlatDisplay = true; |
1049 | QPtrList<Todo> todoList = calendar()->todos(); | 1055 | QPtrList<Todo> todoList = calendar()->todos(); |
1050 | mTodoMap.clear(); | 1056 | mTodoMap.clear(); |
1051 | mTodoListView->clear(); | 1057 | mTodoListView->clear(); |
1052 | Todo *todo; | 1058 | Todo *todo; |
1053 | for(todo = todoList.first(); todo; todo = todoList.next()) { | 1059 | for(todo = todoList.first(); todo; todo = todoList.next()) { |
1054 | KOTodoViewItem *todoItem = new KOTodoViewItem(mTodoListView,todo,this); | 1060 | KOTodoViewItem *todoItem = new KOTodoViewItem(mTodoListView,todo,this); |