src/ldpaths.cpp

changeset 1065
c8ecddbd99e9
parent 1063
1f15c52c11f6
child 1072
9ce9496427f2
equal deleted inserted replaced
1064:4c7a353cf583 1065:c8ecddbd99e9
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

mercurial