--- 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())