Don't read model name from MPD files.

This commit is contained in:
leo 2015-02-08 03:33:14 +00:00
parent 100245f207
commit beec734524

View file

@ -100,7 +100,10 @@ void lcModelProperties::ParseLDrawLine(QTextStream& Stream)
Stream >> Token;
if (Token == QLatin1String("NAME"))
mName = Stream.readAll().trimmed();
{
if (mName.isEmpty())
mName = Stream.readAll().trimmed();
}
else if (Token == QLatin1String("AUTHOR"))
Stream >> mAuthor;
else if (Token == QLatin1String("DESCRIPTION"))