summaryrefslogtreecommitdiff
Unidiff
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
@@ -142,9 +142,12 @@ void TableView::showOverDue( bool ) {
142} 142}
143 143
144void TableView::updateView( ) { 144void TableView::updateView( ) {
145 setSortOrder( 0 );
146 setAscending( true );
147 sort();
145 OTodoAccess::List::Iterator it, end; 148 OTodoAccess::List::Iterator it, end;
146 it = list().begin(); 149 it = sorted().begin();
147 end = list().end(); 150 end = sorted().end();
148 qWarning("setTodos"); 151 qWarning("setTodos");
149 QTime time; 152 QTime time;
150 time.start(); 153 time.start();
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
@@ -59,6 +59,7 @@ OTodoAccess::List TodoView::sorted(){
59} 59}
60void TodoView::sort() { 60void TodoView::sort() {
61 m_sort = todoWindow()->sorted(m_asc,m_sortOrder ); 61 m_sort = todoWindow()->sorted(m_asc,m_sortOrder );
62 qWarning("m_sort.count() = %d", m_sort.count() );
62} 63}
63void TodoView::sort(int sort) { 64void TodoView::sort(int sort) {
64 m_sort = todoWindow()->sorted(m_asc, m_sortOrder, sort ); 65 m_sort = todoWindow()->sorted(m_asc, m_sortOrder, sort );