EDU-570 Reset Task File doesn't decrease tasks solved number in Progress Tool Window
authorLiana Bakradze <liana.bakradze@jetbrains.com>
Tue, 19 Apr 2016 11:21:20 +0000 (14:21 +0300)
committerLiana Bakradze <liana.bakradze@jetbrains.com>
Tue, 19 Apr 2016 11:21:53 +0000 (14:21 +0300)
python/educational-core/student/src/com/jetbrains/edu/learning/actions/StudyRefreshTaskFileAction.java

index 110feeee370f5c124c1c4c1c66a6d12e9058ebb2..ef52729f7740ac84049f1483204597eeb826dc34 100644 (file)
@@ -92,6 +92,7 @@ public class StudyRefreshTaskFileAction extends StudyToolbarAction {
     if (!resetDocument(document, taskFile, name)) {
       return false;
     }
+    taskFile.getTask().setStatus(StudyStatus.Unchecked);
     resetAnswerPlaceholders(taskFile, project);
     ProjectView.getInstance(project).refresh();
     StudyUtils.updateToolWindows(project);