diff --git a/Polyhedron/demo/Polyhedron/MainWindow.cpp b/Polyhedron/demo/Polyhedron/MainWindow.cpp index ea615a40bcd..641e3a1a9a1 100644 --- a/Polyhedron/demo/Polyhedron/MainWindow.cpp +++ b/Polyhedron/demo/Polyhedron/MainWindow.cpp @@ -227,8 +227,9 @@ MainWindow::MainWindow(const QStringList &keywords, bool verbose, QWidget* paren connect(scene, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex & )), this, SLOT(updateInfo())); - connect(scene, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex & )), - this, SLOT(filterOperations())); + connect(scene, &Scene::dataChanged, + this, [this]() { filterOperations(false); }); + connect(scene, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex & )), this, SLOT(updateDisplayInfo())); diff --git a/Polyhedron/demo/Polyhedron/MainWindow.h b/Polyhedron/demo/Polyhedron/MainWindow.h index 99e6bc66b13..7202c8ac629 100644 --- a/Polyhedron/demo/Polyhedron/MainWindow.h +++ b/Polyhedron/demo/Polyhedron/MainWindow.h @@ -366,7 +366,6 @@ protected Q_SLOTS: //!Hides not available operations and show available operations in all the //!menus. void filterOperations(bool hide); - void filterOperations(){ filterOperations(false); }; //!Updates the bounding box and moves the camera to fits the scene. void recenterScene(); //!Resizes the header of the scene view