improve readability
authorLiana.Bakradze <liana.bakradze@jetbrains.com>
Wed, 26 Oct 2016 17:00:25 +0000 (20:00 +0300)
committerliana.bakradze <liana.bakradze@jetbrains.com>
Thu, 17 Nov 2016 14:08:35 +0000 (17:08 +0300)
python/educational-core/course-creator/src/com/jetbrains/edu/coursecreator/actions/CCNewSubtaskAction.java

index e500014c06a06b19983b03068e708dd34ac318e4..663ac14cbd82e83cdd0dfea5a6818a218fc7e752 100644 (file)
@@ -62,8 +62,8 @@ public class CCNewSubtaskAction extends DumbAwareAction {
     createTestsForNewSubtask(project, task);
     int num = task.getLastSubtaskIndex() + 1;
     createTaskDescriptionFile(project, taskDir, num);
-    task.setLastSubtaskIndex(num);
     StudySubtaskUtils.switchStep(project, task, num);
+    task.setLastSubtaskIndex(num);
   }
 
   private static void createTestsForNewSubtask(Project project, Task task) {