src/toolsets/filetoolset.cpp

changeset 1257
0d42a1ebd954
parent 1256
3fea6bc1519b
child 1263
0256edecda54
--- a/src/toolsets/filetoolset.cpp	Fri Mar 02 22:23:53 2018 +0200
+++ b/src/toolsets/filetoolset.cpp	Sat Mar 03 15:14:07 2018 +0200
@@ -124,8 +124,8 @@
 			for (LDObject* object : model.objects())
 			{
 				currentDocument()->insertObject (position, object);
-				currentDocument()->addToSelection(object);
-				position++;
+				mainWindow()->select(currentDocument()->index(position));
+				position += 1;
 			}
 
 			m_window->refresh();

mercurial