53 if (dir.isReadable()) |
53 if (dir.isReadable()) |
54 { |
54 { |
55 QStringList mustHave = { "LDConfig.ldr", "parts", "p" }; |
55 QStringList mustHave = { "LDConfig.ldr", "parts", "p" }; |
56 QStringList contents = dir.entryList (mustHave); |
56 QStringList contents = dir.entryList (mustHave); |
57 |
57 |
58 if (length(contents) == length(mustHave)) |
58 if (countof(contents) == countof(mustHave)) |
59 m_error = ""; |
59 m_error = ""; |
60 else |
60 else |
61 m_error = "That is not an LDraw directory! It must<br />have LDConfig.ldr, parts/ and p/."; |
61 m_error = "That is not an LDraw directory! It must<br />have LDConfig.ldr, parts/ and p/."; |
62 } |
62 } |
63 else |
63 else |