void MixesPanel::mixersDeleteList(QList<int> list) { qSort(list.begin(), list.end()); int iDec = 0; foreach(int idx, list) { gm_deleteMix(idx - iDec); iDec++; }
void MixesPanel::gm_openMix(int index) { if(index<0 || index>=firmware->getCapability(Mixes)) return; MixData mixd(model->mixData[index]); emit modified(); update(); MixerDialog *g = new MixerDialog(this, *model, &mixd, generalSettings, firmware); if(g->exec()) { model->mixData[index] = mixd; emit modified(); update(); } else { if (mixInserted) { gm_deleteMix(index); } mixInserted=false; emit modified(); update(); } }