summaryrefslogtreecommitdiffabout
path: root/korganizer
Side-by-side diff
Diffstat (limited to 'korganizer') (more/less context) (ignore 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()
}
void KOTodoView::updateView()
{
-
+ pendingSubtodo = 0;
if ( mBlockUpdate ) {
//qDebug("blocked ");
return;
@@ -602,6 +602,7 @@ void KOTodoView::updateView()
void KOTodoView::restoreItemState( QListViewItem *item )
{
+ pendingSubtodo = 0;
while( item ) {
KOTodoViewItem *todoItem = (KOTodoViewItem *)item;
todoItem->setOpen( mDocPrefs->readBoolEntry( todoItem->todo()->uid() ) );
@@ -617,7 +618,7 @@ 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);
@@ -705,6 +706,7 @@ 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){