From beec734524e7f153bf2add9f36f9e20728b9e39f Mon Sep 17 00:00:00 2001 From: leo Date: Sun, 8 Feb 2015 03:33:14 +0000 Subject: [PATCH] Don't read model name from MPD files. --- common/lc_model.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/lc_model.cpp b/common/lc_model.cpp index c28739b2..568c3c51 100644 --- a/common/lc_model.cpp +++ b/common/lc_model.cpp @@ -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"))