summaryrefslogtreecommitdiff
path: root/sources/core/VSTask.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/core/VSTask.java')
-rw-r--r--sources/core/VSTask.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/sources/core/VSTask.java b/sources/core/VSTask.java
index 1a5718c..daa85eb 100644
--- a/sources/core/VSTask.java
+++ b/sources/core/VSTask.java
@@ -96,6 +96,18 @@ public class VSTask implements Comparable, VSSerializable {
}
/**
+ * Instantiates a new task, it's a copy constructor.
+ *
+ * @param task the task to copy
+ */
+ public VSTask(VSTask task) {
+ init(task.getTaskTime(),
+ task.getProcess(),
+ task.getEvent(),
+ !task.isGlobalTimed());
+ }
+
+ /**
* Instantiates a new task during a deserialization.
*
* @param serialize the serialize object