summaryrefslogtreecommitdiffabout
path: root/korganizer
Side-by-side diff
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kotodoview.cpp21
-rw-r--r--korganizer/kotodoview.h1
2 files changed, 14 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
@@ -598,3 +598,3 @@ void KOTodoView::updateView()
if ( isFlatDisplay ) {
- setAllFlat();
+ displayAllFlat();
return;
@@ -1125,10 +1125,4 @@ 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;
@@ -1151,2 +1145,13 @@ void KOTodoView::setAllFlat()
+void KOTodoView::setAllFlat()
+{
+ if ( isFlatDisplay ) {
+ isFlatDisplay = false;
+ mPopupMenu->setItemChecked( 8,false );
+ updateView();
+ return;
+ }
+ displayAllFlat();
+}
+
void KOTodoView::purgeCompleted()
diff --git a/korganizer/kotodoview.h b/korganizer/kotodoview.h
index 1642132..462f0a6 100644
--- a/korganizer/kotodoview.h
+++ b/korganizer/kotodoview.h
@@ -172,2 +172,3 @@ class KOTodoView : public KOrg::BaseView
void setAllFlat();
+ void displayAllFlat();