src/toolsets/algorithmtoolset.cpp

changeset 1063
1f15c52c11f6
parent 1062
4119185b56ca
child 1064
4c7a353cf583
--- a/src/toolsets/algorithmtoolset.cpp	Sat Jan 28 13:49:09 2017 +0200
+++ b/src/toolsets/algorithmtoolset.cpp	Sat Jan 28 14:01:19 2017 +0200
@@ -74,7 +74,7 @@
 
 void AlgorithmToolset::editRaw()
 {
-	if (selectedObjects().size() != 1)
+	if (length(selectedObjects()) != 1)
 		return;
 
 	LDObject* obj = selectedObjects()[0];
@@ -431,7 +431,7 @@
 
 void AlgorithmToolset::subfileSelection()
 {
-	if (selectedObjects().size() == 0)
+	if (selectedObjects().isEmpty())
 		return;
 
 	QString			parentpath (currentDocument()->fullPath());

mercurial