summaryrefslogtreecommitdiff
path: root/core/pim/todo/tableview.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/todo/tableview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/tableview.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/pim/todo/tableview.cpp b/core/pim/todo/tableview.cpp
index 097af39..eaaf1bc 100644
--- a/core/pim/todo/tableview.cpp
+++ b/core/pim/todo/tableview.cpp
@@ -142,9 +142,12 @@ void TableView::showOverDue( bool ) {
}
void TableView::updateView( ) {
+ setSortOrder( 0 );
+ setAscending( true );
+ sort();
OTodoAccess::List::Iterator it, end;
- it = list().begin();
- end = list().end();
+ it = sorted().begin();
+ end = sorted().end();
qWarning("setTodos");
QTime time;
time.start();