Check mac file

This commit is contained in:
salman 2012-04-27 08:07:52 +00:00
parent a39961bed7
commit 97b93dcb8f

View File

@ -1,6 +1,6 @@
# Form implementation generated from reading ui file 'QmuSRSim.ui'
#
# Created: Thu Apr 26 17:05:32 2012
# Created: Fri Apr 27 10:07:20 2012
# by: The PerlQt User Interface Compiler (puic)
#
# WARNING! All changes made in this file will be lost!
@ -18906,6 +18906,7 @@ sub CheckSim
my $Geant4PATH= Geant4->text();
my $SaveDataPATH= SaveData->text();
my $ROOTSYSPATH=ROOTSYS->text();
my $MAC=MAC->text();
# Check if any of them is empty or does not exist
unless (-d $musrSimPATH) {
@ -18926,6 +18927,12 @@ sub CheckSim
$answtext=$answtext."ROOTSYS Path is wrong!\n";
}
my $NewFile="$musrSim/run/$MAC.mac";
unless (-e $NewFile) {
$answ=0;
$answtext=}answtext."Macro file $NewFile exists!\n";
}
if ($answ==0) {
print STDERR $answtext;
my $HelpWindow = Qt::MessageBox::information( this, "Error!",$answtext);