Commit 144d7084 authored by Jan Möbius's avatar Jan Möbius
Browse files

Avoid multiple connections in move plugin

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7369 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 5eaced92
......@@ -704,6 +704,14 @@ void MovePlugin::placeManip(QMouseEvent * _event, bool _snap) {
object->manipulatorNode()->apply_transformation(PluginFunctions::pickMode() == "Move");
// Disconnect a previously connected Signal
disconnect(object->manipulatorNode() , SIGNAL(manipulatorMoved(QtTranslationManipulatorNode*,QMouseEvent*)),
this , SLOT( manipulatorMoved(QtTranslationManipulatorNode*,QMouseEvent*)));
disconnect(object->manipulatorNode() , SIGNAL(positionChanged(QtTranslationManipulatorNode*)),
this , SLOT( ManipulatorPositionChanged(QtTranslationManipulatorNode*)));
// Reconnect the signals.
connect(object->manipulatorNode() , SIGNAL(manipulatorMoved(QtTranslationManipulatorNode*,QMouseEvent*)),
this , SLOT( manipulatorMoved(QtTranslationManipulatorNode*,QMouseEvent*)));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment