summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-10-16 23:34:27 (UTC)
committer zautrix <zautrix>2004-10-16 23:34:27 (UTC)
commit9f0a9fb68e70c53593f9cd8340a8bb16d7f6833f (patch) (unidiff)
tree126ad880390f2fd3d1fcbebf34c64e0a3f55d682
parent6564856660d583425a5f5d51bf77bc52c01da444 (diff)
downloadkdepimpi-9f0a9fb68e70c53593f9cd8340a8bb16d7f6833f.zip
kdepimpi-9f0a9fb68e70c53593f9cd8340a8bb16d7f6833f.tar.gz
kdepimpi-9f0a9fb68e70c53593f9cd8340a8bb16d7f6833f.tar.bz2
todo fix
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/kotodoview.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp
index a8143a0..a12acd1 100644
--- a/korganizer/kotodoview.cpp
+++ b/korganizer/kotodoview.cpp
@@ -508,7 +508,7 @@ void KOTodoView::setNarrow()
508} 508}
509void KOTodoView::updateView() 509void KOTodoView::updateView()
510{ 510{
511 511 pendingSubtodo = 0;
512 if ( mBlockUpdate ) { 512 if ( mBlockUpdate ) {
513 //qDebug("blocked "); 513 //qDebug("blocked ");
514 return; 514 return;
@@ -602,6 +602,7 @@ void KOTodoView::updateView()
602 602
603void KOTodoView::restoreItemState( QListViewItem *item ) 603void KOTodoView::restoreItemState( QListViewItem *item )
604{ 604{
605 pendingSubtodo = 0;
605 while( item ) { 606 while( item ) {
606 KOTodoViewItem *todoItem = (KOTodoViewItem *)item; 607 KOTodoViewItem *todoItem = (KOTodoViewItem *)item;
607 todoItem->setOpen( mDocPrefs->readBoolEntry( todoItem->todo()->uid() ) ); 608 todoItem->setOpen( mDocPrefs->readBoolEntry( todoItem->todo()->uid() ) );
@@ -617,7 +618,7 @@ QMap<Todo *,KOTodoViewItem *>::ConstIterator
617// kdDebug() << "KOTodoView::insertTodoItem(): " << todo->getSummary() << endl; 618// kdDebug() << "KOTodoView::insertTodoItem(): " << todo->getSummary() << endl;
618 // TODO: Check, if dynmaic cast is necessary 619 // TODO: Check, if dynmaic cast is necessary
619 620
620 621 pendingSubtodo = 0;
621 Incidence *incidence = todo->relatedTo(); 622 Incidence *incidence = todo->relatedTo();
622 if (incidence && incidence->type() == "Todo") { 623 if (incidence && incidence->type() == "Todo") {
623 Todo *relatedTodo = static_cast<Todo *>(incidence); 624 Todo *relatedTodo = static_cast<Todo *>(incidence);
@@ -705,6 +706,7 @@ void KOTodoView::showItem(QListViewItem *item,const QPoint &,int)
705 706
706void KOTodoView::popupMenu(QListViewItem *item,const QPoint &,int column) 707void KOTodoView::popupMenu(QListViewItem *item,const QPoint &,int column)
707{ 708{
709 pendingSubtodo = 0;
708 mActiveItem = (KOTodoViewItem *)item; 710 mActiveItem = (KOTodoViewItem *)item;
709 if (item) { 711 if (item) {
710 switch (column){ 712 switch (column){