Skip to content

Commit

Permalink
Fix #46291 : custom instruments.xml not loaded if not with Unix-style…
Browse files Browse the repository at this point in the history
… line ending

Regardless of OS, a custom instruments.xml is not loaded if it does not have Unix-style line endings (CR, opposed to Windows CR LF).

See issue at http://musescore.org/en/node/46291 for details.
  • Loading branch information
mgavioli committed Feb 3, 2015
1 parent 791625f commit 88f0b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/instrtemplate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ bool saveInstrumentTemplates1(const QString& instrTemplates)
bool loadInstrumentTemplates(const QString& instrTemplates)
{
QFile qf(instrTemplates);
if (!qf.open(QIODevice::ReadOnly)) {
if (!qf.open(QIODevice::Text | QIODevice::ReadOnly)) {
qDebug("cannot load instrument templates at <%s>", qPrintable(instrTemplates));
return false;
}
Expand Down

0 comments on commit 88f0b02

Please sign in to comment.