summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/WhatsNew.txt2
-rw-r--r--korganizer/kotodoview.cpp21
-rw-r--r--korganizer/kotodoview.h1
3 files changed, 16 insertions, 8 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt
index 7214035..14dcdac 100644
--- a/bin/kdepim/WhatsNew.txt
+++ b/bin/kdepim/WhatsNew.txt
@@ -16,8 +16,10 @@ Made month view better useable with keyboard.
Now TAB key jumps to next cell with an event/todo.
Scroll in cell with coursor keys, scroll in time (next week) with
Shift/Control + coursorkeys.
+Fixeg bug that the todo view flat mode was reset after first view update.
+
********** VERSION 2.0.2 ************
KO/Pi:
Fixed the layout problem of the day label buttons
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp
index 03a8f1c..1a1bce5 100644
--- a/korganizer/kotodoview.cpp
+++ b/korganizer/kotodoview.cpp
@@ -595,9 +595,9 @@ void KOTodoView::updateView()
return;
}
//qDebug("KOTodoView::updateView() %x", this);
if ( isFlatDisplay ) {
- setAllFlat();
+ displayAllFlat();
return;
}
//qDebug("update ");
// kdDebug() << "KOTodoView::updateView()" << endl;
@@ -1122,16 +1122,10 @@ void KOTodoView::setOpen( QListViewItem* item, bool setOpenI)
item = item->nextSibling();
}
}
-void KOTodoView::setAllFlat()
+void KOTodoView::displayAllFlat()
{
- if ( isFlatDisplay ) {
- isFlatDisplay = false;
- mPopupMenu->setItemChecked( 8,false );
- updateView();
- return;
- }
pendingSubtodo = 0;
if ( mBlockUpdate ) {
return;
}
@@ -1148,8 +1142,19 @@ void KOTodoView::setAllFlat()
mTodoListView->setFocus();
processSelectionChange();
}
+void KOTodoView::setAllFlat()
+{
+ if ( isFlatDisplay ) {
+ isFlatDisplay = false;
+ mPopupMenu->setItemChecked( 8,false );
+ updateView();
+ return;
+ }
+ displayAllFlat();
+}
+
void KOTodoView::purgeCompleted()
{
emit purgeCompletedSignal();
}
diff --git a/korganizer/kotodoview.h b/korganizer/kotodoview.h
index 1642132..462f0a6 100644
--- a/korganizer/kotodoview.h
+++ b/korganizer/kotodoview.h
@@ -169,8 +169,9 @@ class KOTodoView : public KOrg::BaseView
void setAllOpen();
void setAllClose();
void setAllFlat();
+ void displayAllFlat();
void purgeCompleted();
void toggleCompleted();
void toggleRunning();