Summary: | JJ: Right click on "task complete" box should not tick/untick box | ||
---|---|---|---|
Product: | [Applications] ktimetracker | Reporter: | Reuben Thomas <rrt> |
Component: | general | Assignee: | Thorsten Staerk <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | LO | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Left click only completion |
Description
Reuben Thomas
2007-09-06 02:15:24 UTC
This is a junior job (JJ). Created attachment 21585 [details]
Left click only completion
This is a (proposed) patch to fix this bug.
Since it's my first kde patch, I hope I did everything ok. If not, please let
me know.
looks correct! SVN commit 710766 by tstaerk: Do not set completed flag when clicking with the right mouse button. BUGS: 149589 M +3 -2 taskview.cpp --- branches/KDE/3.5/kdepim/karm/taskview.cpp #710765:710766 @@ -131,8 +131,9 @@ int leftborder = treeStepSize() * ( task->depth() + ( rootIsDecorated() ? 1 : 0)) + itemMargin(); if ((leftborder < e->x()) && (e->x() < 19 + leftborder )) { - if ( task->isComplete() ) task->setPercentComplete( 0, _storage ); - else task->setPercentComplete( 100, _storage ); + if ( e->button() == LeftButton ) + if ( task->isComplete() ) task->setPercentComplete( 0, _storage ); + else task->setPercentComplete( 100, _storage ); } emit updateButtons(); } |