hide font warnings in test mode
This commit is contained in:
parent
8868c4d645
commit
d1a8cd199b
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue