// Add mapping...
profileNum = freeProfile;
profile[profileNum].device = deviceList->itemData(deviceList->currentIndex()).toInt();
// Add mapping...
profileNum = freeProfile;
profile[profileNum].device = deviceList->itemData(deviceList->currentIndex()).toInt();