Skip to content

Commit

Permalink
Launch macro within Qt if it is given in argument and if Qt mode is a…
Browse files Browse the repository at this point in the history
…sked.

Before:
$ Gate --qt
then /control/execute macro.mac
Now:
$ Gate --qt macro.mac
  • Loading branch information
jsuhard committed May 5, 2014
1 parent d85bc91 commit d2e795e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Gate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -379,19 +379,19 @@ int main( int argc, char* argv[] )
UImanager->ApplyCommand( command + macrofilename );
GateMessage( "Core", 0, "End of macro " << macrofilename << G4endl);
}
else {

if (ui) // Launching interactive mode // Qt
{
ui->SessionStart();
delete ui;
}
else {
if (session) { // Terminal
if (session && !isMacroFile) { // Terminal
session->SessionStart();
delete session;
}
}
}


#ifdef G4ANALYSIS_USE_GENERAL
if (outputMgr) delete outputMgr;
Expand Down

0 comments on commit d2e795e

Please sign in to comment.