-rw-r--r-- | korganizer/kotodoview.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 82c0f4c..00c2d97 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp @@ -411,13 +411,13 @@ void KOTodoListView::keyPressEvent ( QKeyEvent * e ) // qDebug(" ignore %d",e->isAutoRepeat() ); return; } if (! e->isAutoRepeat() ) mFlagKeyPressed = true; QListViewItem* cn; - if ( e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter ) { + if ( (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) && mName != "todolistsmall") { cn = currentItem(); if ( cn ) { KOTodoViewItem* ci = (KOTodoViewItem*)( cn ); if ( ci ){ if ( e->state() == ShiftButton ) ci->setOn( false ); @@ -1690,17 +1690,14 @@ void KOTodoView::keyPressEvent ( QKeyEvent * e ) mTodoListView->ensureItemVisible ( cn ); } } } e->accept(); - } - } - } void KOTodoView::updateTodo( Todo * t, int type ) { if ( mBlockUpdate) return; |