summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-06-18 18:27:09 (UTC)
committer zautrix <zautrix>2005-06-18 18:27:09 (UTC)
commit15e5fcb111968950032089219185ae4322e88f06 (patch) (unidiff)
tree20c6bf864a46bc31148876ec3a64f31c6b5b00c2
parent3d86c369e8b48b340e4093b034f1347defea876b (diff)
downloadkdepimpi-15e5fcb111968950032089219185ae4322e88f06.zip
kdepimpi-15e5fcb111968950032089219185ae4322e88f06.tar.gz
kdepimpi-15e5fcb111968950032089219185ae4322e88f06.tar.bz2
fixes
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/kotodoview.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp
index 98c9bd9..8d957eb 100644
--- a/korganizer/kotodoview.cpp
+++ b/korganizer/kotodoview.cpp
@@ -1180,15 +1180,28 @@ void KOTodoView::itemDoubleClicked(QListViewItem *item)
1180 newTodo(); 1180 newTodo();
1181 return; 1181 return;
1182 } else { 1182 } else {
1183 if ( row == 2 || row == 1 ) { 1183 if ( row == 1 ) {
1184 mActiveItem = (KOTodoViewItem *) item; 1184 mActiveItem = (KOTodoViewItem *) item;
1185 newSubTodo(); 1185 newSubTodo();
1186 return; 1186 return;
1187 } 1187 }
1188 if ( row == 5 || row == 6 ) { 1188 if ( row == 5 || row == 6 || row == 2) {
1189 mActiveItem = (KOTodoViewItem *) item; 1189 mActiveItem = (KOTodoViewItem *) item;
1190 Todo * t = mActiveItem->todo();
1191 if ( t->isRunning() ) {
1192 if ( t->runTime() < 15) {
1193 t->stopRunning();
1194 mActiveItem->construct();
1195 return;
1196 }
1197 else
1190 toggleRunningItem(); 1198 toggleRunningItem();
1191 return; 1199 return;
1200 } else {
1201 t->setRunning( true );
1202 mActiveItem->construct();
1203 return;
1204 }
1192 } 1205 }
1193 } 1206 }
1194 if ( KOPrefs::instance()->mEditOnDoubleClick ) 1207 if ( KOPrefs::instance()->mEditOnDoubleClick )