src/editmodes/selectMode.cpp

changeset 1298
dbc8bb2a4d84
parent 1296
aee618d087ff
child 1326
69a90bd2dba2
--- a/src/editmodes/selectMode.cpp	Sun Mar 18 12:00:39 2018 +0200
+++ b/src/editmodes/selectMode.cpp	Sun Mar 18 12:33:29 2018 +0200
@@ -21,7 +21,7 @@
 #include "../canvas.h"
 #include "../mainwindow.h"
 #include "../lddocument.h"
-#include "../widgets/vertexobjecteditor.h"
+#include "../guiutilities.h"
 
 SelectMode::SelectMode (Canvas* canvas) :
     Super (canvas),
@@ -134,10 +134,8 @@
 
 		if (index.isValid())
 		{
-			// TODO:
 			LDObject* object = currentDocument()->lookup(index);
-			VertexObjectEditor editor {object};
-			editor.exec();
+			::editObject(this->m_window, object);
 			m_window->endAction();
 			return true;
 		}

mercurial