src/mainwindow.cpp

changeset 1373
e1380c0d4326
parent 1369
1e2391b78d17
child 1377
0b9a946002be
--- a/src/mainwindow.cpp	Tue Apr 03 17:23:02 2018 +0300
+++ b/src/mainwindow.cpp	Tue Apr 03 17:32:02 2018 +0300
@@ -155,6 +155,18 @@
 	}
 
 	QMetaObject::invokeMethod (this, "finishInitialization", Qt::QueuedConnection);
+
+	connect(
+		this->ui.objectList,
+		&QListView::doubleClicked,
+		[&](const QModelIndex& index)
+		{
+			LDObject* object = currentDocument()->lookup(index);
+
+			if (object)
+				::editObject(this, object);
+		}
+	);
 }
 
 void MainWindow::finishInitialization()

mercurial