Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 2550)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 2551)
@@ -12,4 +12,28 @@
    * status.cc:
      - added display of average index of slice witg maximum value
+     - implemented a scheme to exit the application and to 
+       leave it open when the loop is finished.
+       
+   * macros/status.C:
+     - added maximum index histogram
+     
+   * mbase/MStatusDisplay.[h,cc]:
+     - implemented kExitLoopOnExit and kExitLoopOnClose
+     
+   * mcamera/CameraLinkDef.h:
+     - added missing MCameraAUX and MCameraLid
+     
+   * mhist/MHCamEvent.[h,cc]:
+     - added fRms
+     
+   * mhist/MHCamera.cc:
+     - added error when printing pixel contents
+     
+   * mhist/MHTriggerLvl0.[h,cc]:
+     - use MHCamera::kProfile
+     - renamed PrintOutLayers to PrintOutliers
+     
+   * mmain/MEventDisplay.cc:
+     - made 'Mini-Canvas' working in all Tabs by catching kCM_TAB
 
 
Index: /trunk/MagicSoft/Mars/mhist/MFillH.cc
===================================================================
--- /trunk/MagicSoft/Mars/mhist/MFillH.cc	(revision 2550)
+++ /trunk/MagicSoft/Mars/mhist/MFillH.cc	(revision 2551)
@@ -470,4 +470,13 @@
 // --------------------------------------------------------------------------
 //
+// Call the ReInit function of the contained Histogram
+//
+Bool_t MFillH::ReInit(MParList *pList)
+{
+    return fH->ReInit(pList);
+} 
+
+// --------------------------------------------------------------------------
+//
 // Fills the data from the parameter conatiner into the histogram container
 //
Index: /trunk/MagicSoft/Mars/mhist/MFillH.h
===================================================================
--- /trunk/MagicSoft/Mars/mhist/MFillH.h	(revision 2550)
+++ /trunk/MagicSoft/Mars/mhist/MFillH.h	(revision 2551)
@@ -59,7 +59,8 @@
     void SetWeight(const char *name) { fWeightName = name; }
 
-    Int_t PreProcess(MParList *pList);
-    Int_t Process();
-    Int_t PostProcess();
+    Int_t  PreProcess(MParList *pList);
+    Bool_t ReInit(MParList *pList);
+    Int_t  Process();
+    Int_t  PostProcess();
 
     TCanvas *GetCanvas() { return fCanvas; }
Index: /trunk/MagicSoft/Mars/mhist/MH.h
===================================================================
--- /trunk/MagicSoft/Mars/mhist/MH.h	(revision 2550)
+++ /trunk/MagicSoft/Mars/mhist/MH.h	(revision 2551)
@@ -31,8 +31,8 @@
     TString AddSerialNumber(const TString &str) const { return AddSerialNumber((const char*)str); }
 
-
     Bool_t OverwritesDraw(TClass *cls=NULL) const;
 
     virtual Bool_t SetupFill(const MParList *pList) { return kTRUE; }
+    virtual Bool_t ReInit(MParList *pList) { return kTRUE; }
     virtual Bool_t Fill(const MParContainer *par, const Stat_t weight=1);
     virtual Bool_t Finalize() { return kTRUE; }
Index: /trunk/MagicSoft/Mars/status.cc
===================================================================
--- /trunk/MagicSoft/Mars/status.cc	(revision 2550)
+++ /trunk/MagicSoft/Mars/status.cc	(revision 2551)
@@ -149,4 +149,7 @@
     //
     MStatusDisplay *d = new MStatusDisplay;
+
+    // From now on each 'Exit' means: Terminate the application
+    d->SetBit(MStatusDisplay::kExitLoopOnExit);
 
     // Set update time to 5s
@@ -299,4 +302,12 @@
     tlist.PrintStatistics();
 
+    if (!evtloop.GetDisplay())
+        return 0;
+
+    // From now on each 'Close' means: Terminate the application
+    d->SetBit(MStatusDisplay::kExitLoopOnClose);
+
+    // Wait until the user decides to exit the application
+    app.Run(kFALSE);
     return 0;
 }
