summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-10-16 23:34:27 (UTC)
committer zautrix <zautrix>2004-10-16 23:34:27 (UTC)
commit9f0a9fb68e70c53593f9cd8340a8bb16d7f6833f (patch) (side-by-side diff)
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
@@ -507,9 +507,9 @@ void KOTodoView::setNarrow()
}
void KOTodoView::updateView()
{
-
+ pendingSubtodo = 0;
if ( mBlockUpdate ) {
//qDebug("blocked ");
return;
}
@@ -601,8 +601,9 @@ void KOTodoView::updateView()
}
void KOTodoView::restoreItemState( QListViewItem *item )
{
+ pendingSubtodo = 0;
while( item ) {
KOTodoViewItem *todoItem = (KOTodoViewItem *)item;
todoItem->setOpen( mDocPrefs->readBoolEntry( todoItem->todo()->uid() ) );
if( item->childCount() > 0 ) restoreItemState( item->firstChild() );
@@ -616,9 +617,9 @@ QMap<Todo *,KOTodoViewItem *>::ConstIterator
{
// kdDebug() << "KOTodoView::insertTodoItem(): " << todo->getSummary() << endl;
// TODO: Check, if dynmaic cast is necessary
-
+ pendingSubtodo = 0;
Incidence *incidence = todo->relatedTo();
if (incidence && incidence->type() == "Todo") {
Todo *relatedTodo = static_cast<Todo *>(incidence);
@@ -704,8 +705,9 @@ void KOTodoView::showItem(QListViewItem *item,const QPoint &,int)
}
void KOTodoView::popupMenu(QListViewItem *item,const QPoint &,int column)
{
+ pendingSubtodo = 0;
mActiveItem = (KOTodoViewItem *)item;
if (item) {
switch (column){
case 1: