Double selection on clic fix

- The eventFilter of the k_ring_selector was connected once to the viewer AND once
  to the main window, which resulted in pressevents called twice and with two different positions.
  I removed the connection to the main window.
This commit is contained in:
Maxime Gimeno 2015-12-30 08:54:21 +01:00
parent 81d638341a
commit f68d1db068
1 changed files with 1 additions and 2 deletions

View File

@ -48,7 +48,7 @@ public:
init(poly_item, mw, aht, k_ring);
}
void init(Scene_polyhedron_item* poly_item, QMainWindow* mw, Active_handle::Type aht, int k_ring) {
void init(Scene_polyhedron_item* poly_item, QMainWindow* /*mw*/, Active_handle::Type aht, int k_ring) {
this->poly_item = poly_item;
this->active_handle_type = aht;
this->k_ring = k_ring;
@ -58,7 +58,6 @@ public:
QGLViewer* viewer = *QGLViewer::QGLViewerPool().begin();
viewer->installEventFilter(this);
mw->installEventFilter(this);
connect(poly_item, SIGNAL(selected_vertex(void*)), this, SLOT(vertex_has_been_selected(void*)));
connect(poly_item, SIGNAL(selected_facet(void*)), this, SLOT(facet_has_been_selected(void*)));