void SetJoystick::propogateSetAxisButtonNameChange() { JoyAxisButton *button = static_cast<JoyAxisButton*>(sender()); disconnect(button, SIGNAL(buttonNameChanged()), this, SLOT(propogateSetAxisButtonNameChange())); emit setAxisButtonNameChange(button->getAxis()->getIndex(), button->getJoyNumber()); connect(button, SIGNAL(buttonNameChanged()), this, SLOT(propogateSetAxisButtonNameChange())); }