-rw-r--r-- | korganizer/kotodoview.cpp | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 03a8f1c..1a1bce5 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp @@ -597,5 +597,5 @@ void KOTodoView::updateView() //qDebug("KOTodoView::updateView() %x", this); if ( isFlatDisplay ) { - setAllFlat(); + displayAllFlat(); return; } @@ -1124,12 +1124,6 @@ void KOTodoView::setOpen( QListViewItem* item, bool setOpenI) } -void KOTodoView::setAllFlat() +void KOTodoView::displayAllFlat() { - if ( isFlatDisplay ) { - isFlatDisplay = false; - mPopupMenu->setItemChecked( 8,false ); - updateView(); - return; - } pendingSubtodo = 0; if ( mBlockUpdate ) { @@ -1150,4 +1144,15 @@ void KOTodoView::setAllFlat() } +void KOTodoView::setAllFlat() +{ + if ( isFlatDisplay ) { + isFlatDisplay = false; + mPopupMenu->setItemChecked( 8,false ); + updateView(); + return; + } + displayAllFlat(); +} + void KOTodoView::purgeCompleted() { |