summaryrefslogtreecommitdiff
authorzecke <zecke>2002-10-07 23:51:51 (UTC)
committer zecke <zecke>2002-10-07 23:51:51 (UTC)
commitdbdc38993798a0e223437908a46846b16541f843 (patch) (side-by-side diff)
treed15d8bf8e0d2fa00ee135ec136ff97141cbf0328
parentb96478d7fb2f916ee2ac512eb83e227d9f0b6f91 (diff)
downloadopie-dbdc38993798a0e223437908a46846b16541f843.zip
opie-dbdc38993798a0e223437908a46846b16541f843.tar.gz
opie-dbdc38993798a0e223437908a46846b16541f843.tar.bz2
Fix bug with category ids in sorted
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
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
@@ -270,39 +270,39 @@ QPopupMenu* MainWindow::edit() {
}
QPopupMenu* MainWindow::view() {
return m_view;
}
QToolBar* MainWindow::toolbar() {
return m_tool;
}
OTodoAccess::List MainWindow::list()const {
return m_todoMgr.list();
}
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;
if (!m_completed )
filter |= 4;
if (m_overdue)
filter |= 2;
return m_todoMgr.sorted( asc, sortOrder, filter, cat );
}
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 );
}
OTodo MainWindow::event( int uid ) {
return m_todoMgr.event( uid );
}
bool MainWindow::isSyncing()const {
return m_syncing;
}
TemplateManager* MainWindow::templateManager() {
return m_tempManager;