summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/tableview.cpp7
-rw-r--r--core/pim/todo/todoview.cpp1
2 files changed, 6 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
@@ -144,5 +144,8 @@ 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");
diff --git a/core/pim/todo/todoview.cpp b/core/pim/todo/todoview.cpp
index b77baed..06eaaa9 100644
--- a/core/pim/todo/todoview.cpp
+++ b/core/pim/todo/todoview.cpp
@@ -61,2 +61,3 @@ void TodoView::sort() {
m_sort = todoWindow()->sorted(m_asc,m_sortOrder );
+ qWarning("m_sort.count() = %d", m_sort.count() );
}