Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 6502)
+++ trunk/MagicSoft/Mars/Changelog	(revision 6503)
@@ -115,4 +115,11 @@
    * mbase/MTask.cc:
      - don't preprocess a task if it has been preprocessed already
+
+   * mraw/MRawFileWrite.cc:
+     - if display is set write output to status line
+
+   * mfileio/MReadTree.cc, mfileio/MReadMarsFile.cc:
+     - moved code to display filename in status display from
+       MReadMarsFile::Notify to MReadTree::Notify
 
 
Index: trunk/MagicSoft/Mars/mfileio/MReadMarsFile.cc
===================================================================
--- trunk/MagicSoft/Mars/mfileio/MReadMarsFile.cc	(revision 6502)
+++ trunk/MagicSoft/Mars/mfileio/MReadMarsFile.cc	(revision 6503)
@@ -47,5 +47,4 @@
 
 #include "MRawRunHeader.h"
-#include "MStatusDisplay.h"
 
 #include "MMcRunHeader.hxx"
@@ -195,12 +194,4 @@
         *fLog << warn << "Warning - You are mixing files with different run types (";
         *fLog << runtype << ", " << rawheader->GetRunType() << ")" << endl;
-    }
-
-    if (fDisplay)
-    {
-        TString txt = GetFileName();
-        txt += " @ ";
-        txt += GetNumEntry()-1;
-        fDisplay->SetStatusLine2(txt);
     }
 
Index: trunk/MagicSoft/Mars/mfileio/MReadTree.cc
===================================================================
--- trunk/MagicSoft/Mars/mfileio/MReadTree.cc	(revision 6502)
+++ trunk/MagicSoft/Mars/mfileio/MReadTree.cc	(revision 6503)
@@ -67,4 +67,5 @@
 #include "MParList.h"
 #include "MTaskList.h"
+#include "MStatusDisplay.h"
 
 #include "MLog.h"
@@ -279,4 +280,12 @@
     *fLog << " '" << GetFileName() << "' (before event #";
     *fLog << GetNumEntry()-1 << ")" << endl;
+
+    if (fDisplay)
+    {
+        TString txt = GetFileName();
+        txt += " @ ";
+        txt += GetNumEntry()-1;
+        fDisplay->SetStatusLine2(txt);
+    }
 
     //
Index: trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
===================================================================
--- trunk/MagicSoft/Mars/mraw/MRawFileRead.cc	(revision 6502)
+++ trunk/MagicSoft/Mars/mraw/MRawFileRead.cc	(revision 6503)
@@ -53,4 +53,5 @@
 #include "MTime.h"
 #include "MParList.h"
+#include "MStatusDisplay.h"
 
 #include "MRawRunHeader.h"
@@ -196,5 +197,15 @@
     }
     else
+    {
         *fLog << inf << "Open file: '" << name << "'" << endl;
+
+        if (fDisplay)
+        {
+            TString txt = GetFileName();
+            txt += " @ ";
+            txt += GetNumExecutions()-1;
+            fDisplay->SetStatusLine2(txt);
+        }
+    }
 
     delete [] expname;
