-rw-r--r-- | korganizer/kotodoview.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 9b5d4ce..7817a75 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp | |||
@@ -1095,18 +1095,19 @@ void KOTodoView::itemDoubleClicked(QListViewItem *item) | |||
1095 | topLevelWidget()->setCaption(i18n("Reparenting aborted!")); | 1095 | topLevelWidget()->setCaption(i18n("Reparenting aborted!")); |
1096 | } | 1096 | } |
1097 | pendingSubtodo = 0; | 1097 | pendingSubtodo = 0; |
1098 | int row = mTodoListView->header()->sectionAt ( mTodoListView->header()->mapFromGlobal( QCursor::pos()).x() ); | 1098 | //int row = mTodoListView->header()->sectionAt ( mTodoListView->header()->mapFromGlobal( QCursor::pos()).x() ); |
1099 | //qDebug("ROW %d ", row); | 1099 | int row = mTodoListView->header()->sectionAt ( mTodoListView->viewportToContents(mTodoListView->viewport()->mapFromGlobal( QCursor::pos())) .x() ); |
1100 | qDebug("ROW %d ", row); | ||
1100 | if (!item) { | 1101 | if (!item) { |
1101 | newTodo(); | 1102 | newTodo(); |
1102 | return; | 1103 | return; |
1103 | } else { | 1104 | } else { |
1104 | if ( row == 2 ) { | 1105 | if ( row == 2 || row == 1 ) { |
1105 | mActiveItem = (KOTodoViewItem *) item; | 1106 | mActiveItem = (KOTodoViewItem *) item; |
1106 | newSubTodo(); | 1107 | newSubTodo(); |
1107 | return; | 1108 | return; |
1108 | } | 1109 | } |
1109 | if ( row == 1 ) { | 1110 | if ( row == 5 || row == 6 ) { |
1110 | mActiveItem = (KOTodoViewItem *) item; | 1111 | mActiveItem = (KOTodoViewItem *) item; |
1111 | toggleRunningItem(); | 1112 | toggleRunningItem(); |
1112 | return; | 1113 | return; |