-rw-r--r-- | core/pim/todo/mainwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index 48954ce..c9c43d4 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp @@ -421,5 +421,4 @@ void MainWindow::slotNew() { populateCategories(); } - raiseCurrentView( ); } @@ -498,4 +497,5 @@ void MainWindow::setCategory( int c) { if ( c <= 0 ) return; + qWarning("Iterating over cats %d", c ); for ( unsigned int i = 1; i < m_catMenu->count(); i++ ) @@ -514,4 +514,5 @@ void MainWindow::setCategory( int c) { } m_catMenu->setItemChecked( c, true ); + currentView()->setShowCategory( m_curCat ); raiseCurrentView(); @@ -550,5 +551,4 @@ void MainWindow::slotShowDetails() { */ void MainWindow::populateCategories() { - if (m_todoMgr.isLoaded() ) m_todoMgr.load(); @@ -615,4 +615,5 @@ void MainWindow::slotEdit( int uid ) { m_todoMgr.update( todo.uid(), todo ); currentView()->replaceEvent( todo ); + /* a Category might have changed */ populateCategories(); } |