From dbdc38993798a0e223437908a46846b16541f843 Mon Sep 17 00:00:00 2001 From: zecke Date: Mon, 07 Oct 2002 23:51:51 +0000 Subject: Fix bug with category ids in sorted --- (limited to 'core') diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index 7e7d2f7..48954ce 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp @@ -279,7 +279,7 @@ OTodoAccess::List MainWindow::list()const { } OTodoAccess::List MainWindow::sorted( bool asc, int sortOrder ) { int cat = 0; - if ( m_curCat == tr("All Categories") ) + if ( m_curCat != tr("All Categories") ) cat = currentCatId(); int filter = 1; @@ -293,7 +293,7 @@ OTodoAccess::List MainWindow::sorted( bool asc, int sortOrder ) { } OTodoAccess::List MainWindow::sorted( bool asc, int sortOrder, int addFilter) { int cat = 0; - if ( m_curCat == tr("All Categories") ) + if ( m_curCat != tr("All Categories") ) cat = currentCatId(); return m_todoMgr.sorted(asc, sortOrder, addFilter, cat ); -- cgit v0.9.0.2