improved handling for invalid MUSRFITPATH

This commit is contained in:
nemu
2010-01-05 10:13:12 +00:00
parent 5c05a34282
commit 6f49067095
4 changed files with 69 additions and 30 deletions

View File

@ -74,9 +74,9 @@ PStartupHandler::PStartupHandler()
strncpy(musrpath, pmusrpath, sizeof(musrpath));
}
sprintf(startup_path_name, "%s/musrfit_startup.xml", musrpath);
fStartupFilePath = TString(startup_path_name);
if (StartupFileExists(startup_path_name)) {
fStartupFileFound = true;
fStartupFilePath = TString(startup_path_name);
}
}
}