Import Geant4 8.2.0 source tree
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4StateManager.cc,v 1.12 2006/06/29 19:04:27 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// $Id: G4StateManager.cc,v 1.13 2006/11/23 00:41:56 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
@@ -192,7 +192,6 @@ G4StateManager::SetNewState(G4ApplicationState requestedState, const char* msg)
|
||||
G4bool ack = true;
|
||||
G4ApplicationState savedState = thePreviousState;
|
||||
thePreviousState = theCurrentState;
|
||||
theCurrentState = requestedState;
|
||||
while ((ack) && (i<theDependentsList.size()))
|
||||
{
|
||||
ack = theDependentsList[i]->Notify(requestedState);
|
||||
@@ -204,10 +203,9 @@ G4StateManager::SetNewState(G4ApplicationState requestedState, const char* msg)
|
||||
}
|
||||
|
||||
if(!ack)
|
||||
{
|
||||
theCurrentState = thePreviousState;
|
||||
thePreviousState = savedState;
|
||||
}
|
||||
{ thePreviousState = savedState; }
|
||||
else
|
||||
{ theCurrentState = requestedState; }
|
||||
msgptr = 0;
|
||||
return ack;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user