Changeset 1157


Ignore:
Timestamp:
Nov 6, 2009, 10:16:53 AM (15 years ago)
Author:
garnier
Message:

intercom update

Location:
trunk/source/intercoms
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/intercoms/History

    r1044 r1157  
    1 $Id: History,v 1.75 2009/05/14 02:59:33 kmura Exp $
     1$Id: History,v 1.77 2009/11/06 09:00:02 kmura Exp $
    22-------------------------------------------------------------------
    33
     
    1717     * Reverse chronological order (last date on top), please *
    1818     ----------------------------------------------------------
     19
     206 November, 2009 K. Murakami (intercoms-V09-02-02)
     21 - add GetPreviousSession() in G4UIbatch
     22
     236 November, 2009 K. Murakami (intercoms-V09-02-01)
     24 - fix incorrect directory deletion of G4UIcommandTree::RemoveCommand()
    1925
    202614 May 2009 K.Murakami (intercoms-V09-02-00)
  • trunk/source/intercoms/include/G4UIbatch.hh

    r1016 r1157  
    2424// ********************************************************************
    2525//
    26 // $Id: G4UIbatch.hh,v 1.10 2007/07/16 10:15:12 kmura Exp $
    27 // GEANT4 tag $Name: geant4-09-02 $
     26// $Id: G4UIbatch.hh,v 1.11 2009/11/06 08:58:53 kmura Exp $
     27// GEANT4 tag $Name: $
    2828//
    2929// ====================================================================
     
    7070  ~G4UIbatch();
    7171 
     72  G4UIsession* GetPreviousSession() const;
     73
    7274  virtual G4UIsession* SessionStart();
    7375  virtual void PauseSessionStart(G4String Prompt);
     
    7577};
    7678
     79// ============================================================================
     80// inlines
     81
     82inline G4UIsession* G4UIbatch::GetPreviousSession() const
     83{
     84  return previousSession;
     85}
     86
    7787#endif
  • trunk/source/intercoms/src/G4UIcommandTree.cc

    r1044 r1157  
    2525//
    2626//
    27 // $Id: G4UIcommandTree.cc,v 1.15 2009/05/07 09:33:51 lgarnier Exp $
     27// $Id: G4UIcommandTree.cc,v 1.16 2009/11/06 06:16:07 kmura Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    143143          tree[i_thTree]->RemoveCommand( aCommand );
    144144          G4int n_commandRemain = tree[i_thTree]->GetCommandEntry();
    145           if(n_commandRemain==0)
     145        G4int n_treeRemain = tree[i_thTree]-> GetTreeEntry();
     146          if(n_commandRemain == 0 && n_treeRemain == 0)
    146147          {
    147148            G4UIcommandTree * emptyTree = tree[i_thTree];
Note: See TracChangeset for help on using the changeset viewer.