void MidiController::applyPreset(QList<QString> scriptPaths) { // Handles the engine Controller::applyPreset(scriptPaths); // Only execute this code if this is an output device if (isOutputDevice()) { if (m_outputs.count() > 0) { destroyOutputHandlers(); } createOutputHandlers(); updateAllOutputs(); } }
bool MidiController::applyPreset(QList<QString> scriptPaths, bool initializeScripts) { // Handles the engine bool result = Controller::applyPreset(scriptPaths, initializeScripts); // Only execute this code if this is an output device if (isOutputDevice()) { if (m_outputs.count() > 0) { destroyOutputHandlers(); } createOutputHandlers(); updateAllOutputs(); } return result; }