Index: trunk/MagicSoft/Mars/mbase/MTaskEnv.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MTaskEnv.h	(revision 5836)
+++ trunk/MagicSoft/Mars/mbase/MTaskEnv.h	(revision 5841)
@@ -32,5 +32,5 @@
     void SetOwner(Bool_t b=kTRUE) { b ? SetBit(kIsOwner) : ResetBit(kIsOwner); }
 
-    void SetDefault(MTask *task) { fTask = task; if (!task) SetBit(kIsDummy); }
+    void SetDefault(MTask *task) { fTask = task; if (fTask) fTask->SetName(fName); else SetBit(kIsDummy); }
     void SetDefault(const char *def);
 
