hide font warnings in test mode

This commit is contained in:
lasconic 2014-07-17 11:15:59 +02:00
parent 8868c4d645
commit d1a8cd199b

View file

@ -195,7 +195,8 @@ void MScore::init()
for (unsigned i = 0; i < sizeof(fonts)/sizeof(*fonts); ++i) {
QString s(fonts[i]);
if (-1 == QFontDatabase::addApplicationFont(s)) {
qDebug("Mscore: fatal error: cannot load internal font <%s>", qPrintable(s));
if (!MScore::testMode)
qDebug("Mscore: fatal error: cannot load internal font <%s>", qPrintable(s));
if (!MScore::debugMode && !MScore::testMode)
exit(-1);
}