src/gui.cpp

changeset 528
e38d199ef9aa
parent 526
b29b6fc45ba9
child 530
f9476dbd87ec
--- a/src/gui.cpp	Tue Oct 22 19:28:45 2013 +0300
+++ b/src/gui.cpp	Tue Oct 22 19:33:41 2013 +0300
@@ -258,17 +258,13 @@
 		return 0;
 
 	QList<LDObject*> selCopy = selection();
-	int num = 0;
 
 	// Delete the objects that were being selected
 	for (LDObject* obj : selCopy)
-	{	LDFile::current()->forgetObject (obj);
-		++num;
 		delete obj;
-	}
 
 	refresh();
-	return num;
+	return selCopy.size();
 }
 
 // =============================================================================

mercurial