src/ldpaths.cpp

changeset 1063
1f15c52c11f6
parent 1028
5877e49e9a28
child 1065
c8ecddbd99e9
--- a/src/ldpaths.cpp	Sat Jan 28 13:49:09 2017 +0200
+++ b/src/ldpaths.cpp	Sat Jan 28 14:01:19 2017 +0200
@@ -55,7 +55,7 @@
 			QStringList mustHave = { "LDConfig.ldr", "parts", "p" };
 			QStringList contents = dir.entryList (mustHave);
 	
-			if (contents.size() == mustHave.size())
+			if (length(contents) == length(mustHave))
 				m_error = "";
 			else
 				m_error = "That is not an LDraw directory! It must<br />have LDConfig.ldr, parts/ and p/.";

mercurial