fixed a bug which was leading to wrong file format settings when loading default msr files.

This commit is contained in:
nemu
2009-03-25 09:49:32 +00:00
parent 4cb6aa2ec9
commit df7f36de2f
4 changed files with 76 additions and 149 deletions
+5 -1
View File
@@ -239,13 +239,17 @@ PAdmin::PAdmin()
if (path.isEmpty())
path = "/home/nemu/analysis/bin";
QString fln = path + "/musrgui_startup.xml";
if (QFile::exists(fln)) { // administrations file present
if (QFile::exists(fln)) { // administration file present
PAdminXMLParser handler(this);
QFile xmlFile(fln);
QXmlInputSource source( &xmlFile );
QXmlSimpleReader reader;
reader.setContentHandler( &handler );
reader.parse( source );
} else {
QMessageBox::critical(0, "ERROR",
"Couldn't find the musrgui_startup.xml settings file.\nProbably a few things will not work porperly.\nPlease fix this first.",
QMessageBox::Ok, QMessageBox::NoButton);
}
}