-rw-r--r-- | korganizer/kotodoview.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 14e8b5c..902f3f4 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp | |||
@@ -860,2 +860,11 @@ void KOTodoView::setNewPercentage(int index) | |||
860 | if (mActiveItem && !mActiveItem->todo()->isReadOnly ()) { | 860 | if (mActiveItem && !mActiveItem->todo()->isReadOnly ()) { |
861 | |||
862 | if ( mPercentage[index] == 100 && !mActiveItem->isOn() ) { | ||
863 | mActiveItem->setOn( true ); | ||
864 | return; | ||
865 | } else if ( mPercentage[index] != 100 && mActiveItem->isOn() ) { | ||
866 | KOTodoViewItem* par = (static_cast<KOTodoViewItem*>(mActiveItem->parent())); | ||
867 | if ( par && par->isOn() ) | ||
868 | par->setOn( false ); | ||
869 | } | ||
861 | if (mPercentage[index] == 100) { | 870 | if (mPercentage[index] == 100) { |