{"action":"closed","issue":{"url":"https://api.github.com/repos/CGAL/cgal/issues/226","labels_url":"https://api.github.com/repos/CGAL/cgal/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/CGAL/cgal/issues/226/comments","events_url":"https://api.github.com/repos/CGAL/cgal/issues/226/events","html_url":"https://github.com/CGAL/cgal/issues/226","id":98419905,"number":226,"title":"Polyhedron demo : select newly created item","user":{"login":"janetournois","id":11311305,"avatar_url":"https://avatars.githubusercontent.com/u/11311305?v=3","gravatar_id":"","url":"https://api.github.com/users/janetournois","html_url":"https://github.com/janetournois","followers_url":"https://api.github.com/users/janetournois/followers","following_url":"https://api.github.com/users/janetournois/following{/other_user}","gists_url":"https://api.github.com/users/janetournois/gists{/gist_id}","starred_url":"https://api.github.com/users/janetournois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janetournois/subscriptions","organizations_url":"https://api.github.com/users/janetournois/orgs","repos_url":"https://api.github.com/users/janetournois/repos","events_url":"https://api.github.com/users/janetournois/events{/privacy}","received_events_url":"https://api.github.com/users/janetournois/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CGAL/cgal/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/CGAL/cgal/labels/CGAL%203D%20demo","name":"CGAL 3D demo","color":"bfe5bf"},{"url":"https://api.github.com/repos/CGAL/cgal/labels/Qt5","name":"Qt5","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"sloriot","id":1224632,"avatar_url":"https://avatars.githubusercontent.com/u/1224632?v=3","gravatar_id":"","url":"https://api.github.com/users/sloriot","html_url":"https://github.com/sloriot","followers_url":"https://api.github.com/users/sloriot/followers","following_url":"https://api.github.com/users/sloriot/following{/other_user}","gists_url":"https://api.github.com/users/sloriot/gists{/gist_id}","starred_url":"https://api.github.com/users/sloriot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloriot/subscriptions","organizations_url":"https://api.github.com/users/sloriot/orgs","repos_url":"https://api.github.com/users/sloriot/repos","events_url":"https://api.github.com/users/sloriot/events{/privacy}","received_events_url":"https://api.github.com/users/sloriot/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/CGAL/cgal/milestones/9","html_url":"https://github.com/CGAL/cgal/milestones/4.7-beta2","labels_url":"https://api.github.com/repos/CGAL/cgal/milestones/9/labels","id":1243537,"number":9,"title":"4.7-beta2","description":"Second beta version of CGAL-4.7.\r\n","creator":{"login":"lrineau","id":5746675,"avatar_url":"https://avatars.githubusercontent.com/u/5746675?v=3","gravatar_id":"","url":"https://api.github.com/users/lrineau","html_url":"https://github.com/lrineau","followers_url":"https://api.github.com/users/lrineau/followers","following_url":"https://api.github.com/users/lrineau/following{/other_user}","gists_url":"https://api.github.com/users/lrineau/gists{/gist_id}","starred_url":"https://api.github.com/users/lrineau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrineau/subscriptions","organizations_url":"https://api.github.com/users/lrineau/orgs","repos_url":"https://api.github.com/users/lrineau/repos","events_url":"https://api.github.com/users/lrineau/events{/privacy}","received_events_url":"https://api.github.com/users/lrineau/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":1,"state":"open","created_at":"2015-08-06T09:12:30Z","updated_at":"2015-08-06T15:01:15Z","due_on":"2015-08-19T22:00:00Z","closed_at":null},"comments":4,"created_at":"2015-07-31T16:00:02Z","updated_at":"2015-08-06T15:01:15Z","closed_at":"2015-08-06T15:01:15Z","body":"When a new item is created, many plugins try to select the new item with code like\r\n```c++\r\nint item_id = scene->addItem(new Scene_polyhedron_selection_item(poly_item, mw));\r\nscene->setSelectedItem(item_id);\r\n```\r\nThis does not succeed to make the new item selected and does not help using some plugins.\r\n\r\nWe should probably use the function\r\n```C++\r\nvoid MainWindow::selectSceneItem(int i)\r\n```"}}