src/mainwindow.cpp

changeset 1063
1f15c52c11f6
parent 1045
f726f8f49c7e
child 1065
c8ecddbd99e9
--- a/src/mainwindow.cpp	Sat Jan 28 13:49:09 2017 +0200
+++ b/src/mainwindow.cpp	Sat Jan 28 14:01:19 2017 +0200
@@ -365,7 +365,7 @@
 		obj->destroy();
 
 	refresh();
-	return selCopy.size();
+	return length(selCopy);
 }
 
 // ---------------------------------------------------------------------------------------------------------------------
@@ -719,7 +719,7 @@
 //
 void MainWindow::spawnContextMenu (const QPoint& position)
 {
-	const bool single = (selectedObjects().size() == 1);
+	const bool single = (length(selectedObjects()) == 1);
 	LDObject* singleObj = single ? selectedObjects().first() : nullptr;
 
 	bool hasSubfiles = false;
@@ -1277,7 +1277,7 @@
 void MainWindow::closeInitialDocument()
 {
 /*
-	if (m_documents.size() == 2 and
+	if (length(m_documents) == 2 and
 		m_documents[0]->name().isEmpty() and
 		not m_documents[1]->name().isEmpty() and
 		not m_documents[0]->hasUnsavedChanges())

mercurial