- significantly sped up selecting all objects, it is now an actually fast operation

Thu, 01 May 2014 14:26:10 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Thu, 01 May 2014 14:26:10 +0300
changeset 761
64ea52bf685c
parent 760
e4e585f464b3
child 762
d259256e1394

- significantly sped up selecting all objects, it is now an actually fast operation

src/actions.cc file | annotate | diff | comparison | revisions
src/ldDocument.cc file | annotate | diff | comparison | revisions
--- a/src/actions.cc	Wed Apr 30 23:44:50 2014 +0300
+++ b/src/actions.cc	Thu May 01 14:26:10 2014 +0300
@@ -290,7 +290,7 @@
 	for (LDObject* obj : getCurrentDocument()->objects())
 		obj->select();
 
-	updateSelection();
+	ui->objectList->selectAll();
 }
 
 // =============================================================================
--- a/src/ldDocument.cc	Wed Apr 30 23:44:50 2014 +0300
+++ b/src/ldDocument.cc	Thu May 01 14:26:10 2014 +0300
@@ -1455,6 +1455,7 @@
 
 	assert (obj->document() == this);
 	m_sel << obj;
+	g_win->R()->compileObject (obj);
 	obj->setSelected (true);
 }
 
@@ -1467,6 +1468,7 @@
 
 	assert (obj->document() == this);
 	m_sel.removeOne (obj);
+	g_win->R()->compileObject (obj);
 	obj->setSelected (false);
 }
 

mercurial