diff --git a/controllersetup.cpp b/controllersetup.cpp index fc0da28..8bd9831 100644 --- a/controllersetup.cpp +++ b/controllersetup.cpp @@ -132,7 +132,8 @@ void controllerSetup::onEventIndexChanged(int index) { currentButton->onCommand = &commands->at(onEvent->currentData().toInt()); currentButton->onText->setPlainText(currentButton->onCommand->text); } - emit programButtons(); // Signal that any button programming on the device should be completed. + // Signal that any button programming on the device should be completed. + emit programButton(onEvent->currentData().toInt(), currentButton->onCommand->text); } @@ -143,7 +144,6 @@ void controllerSetup::offEventIndexChanged(int index) { currentButton->offCommand = &commands->at(offEvent->currentData().toInt()); currentButton->offText->setPlainText(currentButton->offCommand->text); } - emit programButtons(); // Signal that any button programming on the device should be completed. } void controllerSetup::knobEventIndexChanged(int index) { @@ -153,7 +153,6 @@ void controllerSetup::knobEventIndexChanged(int index) { currentKnob->command = &commands->at(knobEvent->currentData().toInt()); currentKnob->text->setPlainText(currentKnob->command->text); } - emit programButtons(); // Signal that any button programming on the device should be completed. } @@ -164,7 +163,7 @@ void controllerSetup::newDevice(unsigned char devType, QVector